List of Listings

 

Chapter 1. Seam unifies Java EE

Listing 1.1. The JPA entity class that represents a golf tip

Listing 1.2. The action listener for the JSF view

Listing 1.3. An end-to-end test of the golf tips application using the Seam test framework

Chapter 2. Putting seam-gen to work

Listing 2.1. Responding to the seam-gen setup questionnaire

Listing 2.2. Creating a new project with seam-gen

Listing 2.3. Reverse engineering the database to create entities and session beans

Listing 2.4. Customizes property names of entity classes and adds extra methods

Listing 2.5. Filters tables and establishes missing relationships

Listing 2.6. Method that sets the sort order for the course list

Listing 2.7. Incremental redeployment as reported by the development classloader

Listing 2.8. TeeSet and Hole collections ordered according to golf regulation

Chapter 3. The Seam life cycle

Listing 3.1. A field in a JSF form using standard markup

Listing 3.2. A JSF form field decorated by the layout/edit.xhtml composition template

Listing 3.3. The layout/edit.xhtml composition template for input fields

Listing 3.4. Contextual navigation rule consulted after persisting a facility

Listing 3.5. URL rewrite configuration for friendly URLs

Listing 3.6. Configuration for capturing authorization exceptions

Chapter 4. Components and contexts

Listing 4.1. The Golfer entity class as a Seam component

Listing 4.2. The Member entity class, a superclass for application user types