JSF finds configuration file or files looking in context initialization parameter,
javax.faces.CONFIG_FILES in web.xml,
that specifies one or more paths to multiple configuration files for
your web application. These multiple paths must be comma separeted. The
important point to remember is not to register
/WEB-INF/faces-config.xml file in the web.xml. Otherwise, the JSF
implementation will process it twice. For example, make changes in
web.xml like below :
<context-param>
<param-name>javax.faces.CONFIG_FILES</param-name>
<param-value>
/WEB-INF/test1-config.xml,/WEB-INF/test2-config.xml
</param-value>
</context-param> |
|
|