This content has been marked as final.
Show 3 replies
-
1. Re: Testing for development version in JSF?
dhinojosa Jul 1, 2008 12:38 AM (in response to jstockton)I believe this will work
#{facesContext.externalContext.getInitParameter('facelets.DEVELOPMENT')}
you can probably make a factory out of it in components.xml so it can be shorter
<factory name="isFaceletDevelopment" auto-create="true" value="#{facesContext.externalContext.getInitParameter('facelets.DEVELOPMENT')}"/>
I am pretty sure the first code snippet will work, not sure about the factory so you'll need to play with it.
-
2. Re: Testing for development version in JSF?
jstockton Jul 1, 2008 3:42 PM (in response to jstockton)Thanks for the help. The first snippet did work but the factory did not. Oh well. At least I have a better way of controlling what gets shown and when.
-
3. Re: Testing for development version in JSF?
jstockton Jul 1, 2008 4:03 PM (in response to jstockton)Actually, that does work. Just didn't realize that components.xml wasn't hot deployable.