Prepare Interview

Mock Exams

Make Homepage

Bookmark this page

Subscribe Email Address

JSF%20Interview%20Questions%20and%20Answers

Question: Is it possible to have more than one Faces Configuration file?
Answer: 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-value>
</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 "faces-config.xml" file as thats the default configuration file for JSF (which is similar to struts-config.xml for Struts!!). faces-context.xml file sounds like the user defined config file similar to the aforementioned two xml files.
Is it helpful? Yes No

Most helpful rated by users:

©2024 WithoutBook