The Source for Java Technology Collaboration
User: Password:
Register | Login help    

Search

Online Books:
java.net on MarkMail:


JSF 2.0 Reminder: Project Stage

Posted by driscoll on September 28, 2009 at 11:16 AM PDT

Just a reminder that while you are developing a JSF 2.0 project, you really, really, really should enable the Development Project Stage. Doing this enables better error messages, including in the client side JavaScript, at the cost of some performance.

Enabling this is as simple as putting the below into your web.xml:

<context-param>
  <param-name>javax.faces.PROJECT_STAGE</param-name>
  <param-value>Development</param-value>
</context-param>

When going into production, simply change the project stage to Production, like so:

<context-param>
  <param-name>javax.faces.PROJECT_STAGE</param-name>
  <param-value>Production</param-value>
</context-param>

This will turn off some error messages, and emphasize performance.

Related Topics >> Blogs      Java Enterprise      Web Applications      
Comments
Comments are listed in date ascending order (oldest first)