Monday, August 4, 2014

javax.faces.project_stage

There is a new feature introduced in JSF2.x,
Which is the javax.faces.PROJECT_STAGE in the web.xml.

When creating a new JSF2.x project, the default value is “Development”.
When going into Production environment, the value should be changed to “Production”
To reduce logs, and avoid re-download of static resources (js, css, images, etc), and all the static resources will be cached in the client machine.

Besides, if this parameter remove from web.xml, the default value is "Production"

reference,
https://blogs.oracle.com/rlubke/entry/jsf_2_0_new_feature2
https://weblogs.java.net/blog/driscoll/archive/2009/09/28/jsf-20-reminder-project-stage


Done!!

LinkWithin

Related Posts Plugin for WordPress, Blogger...