oops, should have gone to the myfaces-dev list^^ LieGrue, strub
----- Forwarded Message ----- > From: Mark Struberg <[email protected]> > To: Ben Utzer <[email protected]> > Cc: > Sent: Monday, October 10, 2011 4:51 PM > Subject: Re: How to specify ProjectStage with CODI > > CODI does _not_ parse the web.xml context.xml! > > The reason is that web.xml magic only works in web containers and make no > sense > in unit tests nor does it provide sufficient flexibility for using it in a > real > world project. > > If you write config which might change from installation to installation > (some > JDBC connection settings, the ProjectStage, etc) into your web.xml, then you > would need to re-package your WAR for each and every server. I don't think > this is practicable!. > > So rather do it via JNDI or java property. > > LieGrue, > strub > > > > ----- Original Message ----- >> From: Ben Utzer <[email protected]> >> To: MyFaces Discussion <[email protected]>; Mark Struberg > <[email protected]> >> Cc: >> Sent: Monday, October 10, 2011 3:54 PM >> Subject: Re: How to specify ProjectStage with CODI >> >> Hi and thanks for your suggestion. And what's the best way to do it >> outside of a JSF application? >> >> Also when I try with JSF and specify >> javax.faces.ProjectStage=Development as context-param CODI complains >> about different ProjectStages as CODI resolves the ProjectStage to >> Production. >> >> Ben >> >> 2011/10/10 Mark Struberg <[email protected]>: >>> or you could also just set >>> >>> -Dfaces.PROJECT_STAGE=SystemTest >>> >>> >>> on the Java commandline. >>> >>> Another way is to set it via JNDI: >>> >>> in ${catalina.base}/conf/context.xml >>> just add the follwing lines >>> >>> <Environment name="jsf/ProjectStage" >> value="SystemTest" >>> type="java.lang.String" > override="false"/> >>> >>> LieGrue, >>> strub >>> >>> >>> ----- Original Message ----- >>>> From: Michael Kurz <[email protected]> >>>> To: MyFaces Discussion <[email protected]> >>>> Cc: >>>> Sent: Monday, October 10, 2011 2:42 PM >>>> Subject: Re: How to specify ProjectStage with CODI >>>> >>>> Hi, >>>> >>>> the JSF 2 project stage is set via a context parameter in the > web.xml: >>>> >>>> <context-param> >>>> <param-name>javax.faces.PROJECT_STAGE</param-name> >>>> <param-value>Production</param-value> >>>> </context-param> >>>> >>>> Best regards >>>> Michael >>>> >>>> >>>> Am 10.10.2011 um 13:19 schrieb Chris Eggers: >>>> >>>>> Hi guys, >>>>> >>>>> I'm trying to tell my application that it is currently in >>>>> ProjectStage.Development. >>>>> No luck, though. Can somebody help, please? >>>>> >>>>> Ben >>>> >>> >> >> >> >> -- >> o >> L_ >> OL >> >
