Configuring JavaServer Faces Applications - The Java EE 6 Tutorial (original) (raw)
Chapter 14
Configuring JavaServer Faces Applications
The process of building and deploying simple JavaServer Faces applications is described in earlier chapters of this tutorial. When you create large and complex applications, 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 application 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
- Application Configuration Resource File
- Configuring Managed Beans
- Registering Application Messages
- Using Default Validators
- Registering a Custom Validator
- Registering a Custom Converter
- Configuring Navigation Rules
- Registering a Custom Renderer with a Render Kit
- Registering a Custom Component
- Basic Requirements of a JavaServer Faces Application
Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Legal Notices