C H A P T E R  4


Creating an E-shop

In this chapter, you'll learn how to create an e-shop. This involves displaying a list of products (using a loop), implementing a shopping cart for each user, supporting user login and logout, and requiring authenticated access for the checkout page.

Suppose that you'd like to create the e-shop as shown in Figure 4-1. Initially, the page lists all the products. Clicking a product link will display the detail page for the product.


Figure 4-1. Your e-shop

Listing the Products

OK, let's do it. Create a new ...

Get Beginning JSF™ 2 APIs and JBoss® Seam now with the O’Reilly learning platform.

O’Reilly members experience live online training, plus books, videos, and digital content from nearly 200 publishers.