You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by "Pfau, Oliver" <ol...@siemens.com> on 2006/09/04 16:31:50 UTC

Two faces config files in one war

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

Re: Two faces config files in one war

Posted by "R. Müller" <r....@unicomp-berlin.de>.
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 : r.mueller@unicomp-berlin.de
*web   : www.unicomp-berlin.de
********************************************************