Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Uses of javax.faces.PROJECT_STAGE

Tags:

I wanted to understand impact of 'javax.faces.PROJECT_STAGE' property for a JSF application. A nice use case was presented in below links

https://dzone.com/articles/jsf-20-new-feature-preview-ser
http://www.java-tutorial.ch/java-server-faces/jsf-project-stage

Except presenting validation error messages, is there any other use case where this property really helps? I understand that we can check this variable to identify the environment and change certain functionality, however is there anything else that JSF does automatically to help developers? Would be great if you can share the experiences from your project?

like image 610
Vicky Avatar asked Oct 05 '13 04:10

Vicky


2 Answers

Setting this param to Development enables better error messages, including in the client-side JavaScript, at the cost of some performance.

While setting this param to Production will turn off some error messages, and emphasize performance.

Source:
JSF 2.0 Reminder: Project Stage

like image 110
vrcca Avatar answered Oct 16 '22 15:10

vrcca


According to the comment by wutzebaer for this linked post the javax.faces.PROJECT_STAGE property may control whether or not certain features are enabled (such as resource caching).

like image 44
timmi4sa Avatar answered Oct 16 '22 13:10

timmi4sa