C H A P T E R  4

image

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.

images

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 books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.