O'Reilly logo

Beginning JSF™ 2 APIs and JBoss® Seam by Kent Ka Iok Tong

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required