Thanks...I know that, but maybe I should describe my problem more precisely...
I have two portlet in one war and each portlet has its own faces context. Now I
want that faces config xml file 1 only is valid for portlet 1 and faces config
xml 2 only for portlet 2. But when I define multiple faces config xmls in param
javax.faces.CONFIG_FILES, all faces config xmls will be visible for all my
portlets.
Part of my web.xml:
....
<servlet>
<servlet-name>PDNAVnavigationWEB</servlet-name>
<servlet-class>
com.liferay.portal.servlet.PortletServlet
</servlet-class>
<init-param>
<param-name>portlet-class</param-name>
<param-value>
org.apache.portals.bridges.jsf.FacesPortlet
</param-value>
</init-param>
<load-on-startup>0</load-on-startup>
</servlet>
<servlet>
<servlet-name>PDNAVdetailWEB</servlet-name>
<servlet-class>
com.liferay.portal.servlet.PortletServlet
</servlet-class>
<init-param>
<param-name>portlet-class</param-name>
<param-value>
org.apache.portals.bridges.jsf.FacesPortlet
</param-value>
</init-param>
<load-on-startup>0</load-on-startup>
</servlet>
I thought it could be possible to pass each servlet a different faces config
xml.
-----Ursprüngliche Nachricht-----
Von: "R. Müller" [mailto:[EMAIL PROTECTED]
Gesendet: Montag, 4. September 2006 17:01
An: MyFaces Discussion
Betreff: Re: Two faces config files in one war
basically yes, since you can provide multiple config-files to JSF,
separated by comma, with the following context-param in your web.xml :
<context-param>
<description>
Comma separated list of URIs of (additional) faces config
files. (e.g. /WEB-INF/my-config.xml) See JSF 1.0 PRD2,
10.3.2 (If there is file named 'faces-config.xml' available,
it will automatically parsed by MYFACES)
</description>
<param-name>javax.faces.CONFIG_FILES</param-name>
<param-value>/WEB-INF/myconfig.xml,/WEB-INF/custom-components.xml</param-value>
</context-param>
regards
ronald
Pfau, Oliver wrote:
> Hi,
>
> I have two faces servlets in one war file. Is it possible to provide
> each of the servlets a specific faces config xml file in web.xml ?
>
> Greetings
> Oliver
--
*********************************************************
*M-Unicomp GmbH
*
*Dipl.-Ing. Ronald Müller
*Softwareentwicklung
*
*Plauener Straße 163-165, Haus 11
*13053 Berlin
*
*fon : +49 ( 0 ) 30 / 98 69 61 54
*mobil : +49 ( 0 ) 172 / 93 95 00 4
*fax : +49 ( 0 ) 30 / 98 69 61 55
*email : [EMAIL PROTECTED]
*web : www.unicomp-berlin.de
********************************************************