How do I set the CODI project stage?

900 Views Asked by At

I found this wiki page through a nabble posting, but I can't make sense of it. In my JSF application, how do I tell CODI that I want to be running in development mode? Is there a web.xml setting or do I have to use an annotation somewhere?

Much thanks for any help.

2

There are 2 best solutions below

6
On BEST ANSWER

See https://cwiki.apache.org/confluence/display/EXTCDI/Core+Usage#CoreUsage-EnvironmentConfigOptions Web.xml settings aren't supported see: "Static configuration files like web.xml and property files aren't supported by default because ..."

1
On

I know it's been a couple of months since you asked the question, but I achieve this by setting javax.faces.PROJECT_STAGE=Development as a system property when running in my dev environment. CODI doesn't pick it up from web.xml, but does test the system property.