Java Reference
In-Depth Information
Chapter 7. Configuring JavaServer Faces Applications
The process of building and deploying simple JavaServer Faces applications is described
in The Java EE 6 Tutorial: Basic Concepts . When you create large and complex applica-
tions, however, various additional configuration tasks are required. These tasks include the
following:
• Registering managed beans with the application so that all parts of the application
have access to them
• Configuring managed beans and model beans so that they are instantiated with the
proper values when a page makes reference to them
• Defining navigation rules for each of the pages in the application so that the applic-
ation has a smooth page flow, if non-default navigation is needed
• Packaging the application to include all the pages, resources, and other files so that
the application can be deployed on any compliant container
The following topics are addressed here:
• “ Using Annotations to Configure Managed Beans ” on page 142
• “ Application Configuration Resource File ” on page 144
• “ Configuring Managed Beans on page 146
• “ Registering Application Messages on page 155
• “ Using Default Validators ” on page 159
• “ Registering a Custom Validator on page 159
• “ Registering a Custom Converter on page 160
• “ Configuring Navigation Rules ” on page 161
• “ Registering a Custom Renderer with a Render Kit on page 165
• “ Registering a Custom Component on page 167
• “ Basic Requirements of a JavaServer Faces Application ” on page 168
Using Annotations to Configure Managed Beans
JavaServer Faces support for bean annotations is introduced in Chapter 4 , JavaServer
Faces Technology ,” in The Java EE 6 Tutorial: Basic Concepts . Bean annotations can be
used for configuring JavaServer Faces applications.
Search WWH ::




Custom Search