Java Reference
In-Depth Information
• A value-change listener is registered on the name field on bookcash-
ier.xhtml . This listener saves the name in a parameter so the following
page, bookreceipt.xhtml , can access it.
• Enterprise beans: Local, no-interface-view stateless session bean and singleton
bean
• A Java Persistence API entity
The packages of the Duke's Bookstore application, located in the tut-install /examples/
case-studies/dukes-bookstore/src/java/dukesbookstore/ directory,
are as follows:
components : Includes the custom UI component classes, MapComponent and
AreaComponent
converters : Includes the custom converter class, CreditCardConverter
ejb : Includes two enterprise beans:
• A singleton bean, ConfigBean , that initializes the data in the database
• A stateless session bean, BookRequestBean , that contains the business lo-
gic to manage the entity
entity : Includes the Book entity class
exceptions : Includes three exception classes
listeners : Includes the event handler and event listener classes
model : Includes a model JavaBeans class
renderers : Includes the custom renderers for the custom UI component classes
web.managedbeans : Includes the managed beans for the Facelets pages
web.messages : Includes the resource bundle files for localized messages
The Duke's Bookstore Interface
This section provides additional detail regarding the components of the Duke's Bookstore
example and how they interact.
The Book Java Persistence API Entity
The Book entity, located in the dukesbookstore.entity package, encapsulates the
book data stored by Duke's Bookstore.
The Book entity defines attributes used in the example:
Search WWH ::




Custom Search