Yes. You can define the list of the configuration files in the web.xml.
This is an example:
<context-param>
<param-name>javax.faces.CONFIG_FILES</param-name>
<param-value>/WEB-INF/faces-config-navigation.xml,/WEB-INF/faces-beans.xml</param-</context-param>
Note: Do not register /WEB-INF/faces-config.xml file in the web.xml . Otherwise, the JSF implementation will process it twice.
Hi there, I guess the Note: column should have been meant or intended for "facesconfig.xml" file as thats the default configuration file for JSF (which is similar to strutsconfig.xml for Struts!!). faces-context.xml file sounds like the user defined config file similar to the aforementioned two xml files.
This is an example:
<context-param>
<param-name>javax.faces.CONFIG_FILES</param-name>
<param-value>/WEB-INF/faces-config-navigation.xml,/WEB-INF/faces-beans.xml</param-</context-param>
Note: Do not register /WEB-INF/faces-config.xml file in the web.xml . Otherwise, the JSF implementation will process it twice.
Hi there, I guess the Note: column should have been meant or intended for "facesconfig.xml" file as thats the default configuration file for JSF (which is similar to strutsconfig.xml for Struts!!). faces-context.xml file sounds like the user defined config file similar to the aforementioned two xml files.
No comments:
Post a Comment