JSF configuration files
1. Overview
JSF is based on the following configuration files:
-
web.xml - General web application configuration file
-
faces-config.xml - Contains the configuration
of the JSF
application.
2. web.xml
web.xml
in the
directory WEB-INF of the
application. This is similar to other
web-applications which are based on
servlets. You must specify in
web.xml
that a
"FacesServlet" is
responsible for handling JSF applications.
"FacesServlet" is the
central controller for the JSF
application.
"FacesServlet" receives all
requests for the JSF
application and
initializes the JSF
components
before the JSP is displayed.
"faces-config.xml" allows to configure the application, managed
beans, convertors, validators, and navigation.
Comments
Post a Comment