The portlets are communicating about a session attribute which is only possible when they are in the same webapp.
-----Ursprüngliche Nachricht----- Von: David Delbecq [mailto:[EMAIL PROTECTED] Gesendet: Montag, 4. September 2006 17:42 An: MyFaces Discussion Betreff: Re: AW: Two faces config files in one war May i sak you why 1) you need 2 portlet engines and can't go with only one? 2) you need 2 different configuration 3) assuming there is a need for such a distinction (2 different content, 2 different components configurations), why you don't go with 2 webapps? Pfau, Oliver a écrit : > 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 >> > >

