background image

Configuring JavaServer Faces Applications

<< Fully-Qualified Class Name | The faces-config Tag >>
<< Fully-Qualified Class Name | The faces-config Tag >>

Configuring JavaServer Faces Applications

Configuring JavaServer Faces Applications
The responsibilities of the application architect include the following:
Registering back-end objects with the application so that all parts of the application have
access to them
Configuring backing 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
Packaging the application to include all the pages, objects, and other files so that the
application can be deployed on any compliant container
This chapter explains how to perform all the responsibilities of the application architect.
Application Configuration Resource File
JavaServer Faces technology provides a portable configuration format (as an XML document)
for configuring resources. An application architect creates one or more files, called application
configuration resource files, that use this format to register and configure objects and to define
navigation rules. An application configuration resource file is usually called faces-config.xml.
The application configuration resource file must be valid against the schema located at
http://java.sun.com/xml/ns/javaee/web-facesconfig_1_2.xsd
.
14
C H A P T E R
1 4
437