javax.faces.PROJECT_STAGE的使用 [英] Uses of javax.faces.PROJECT_STAGE

查看:151
本文介绍了javax.faces.PROJECT_STAGE的使用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想了解'javax.faces.PROJECT_STAGE'属性对JSF应用程序的影响.下面的链接中展示了一个很好的用例

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

http://css.dzone.com/news/jsf-20-new -feature-preview-ser
http://www.java-tutorial.ch/java-server-faces/jsf-项目阶段

除了显示验证错误消息外,是否还有其他用例可以真正帮助您解决此问题?我了解我们可以检查此变量以识别环境并更改某些功能,但是JSF会自动执行其他任何操作来帮助开发人员吗?如果您可以分享项目经验,那会很棒吗?

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?

推荐答案

将此参数设置为Development可以产生更好的错误消息,包括客户端JavaScript中的消息,但会降低性能.

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

将此参数设置为Production时,将关闭一些错误消息,并且强调效果.

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

来源:
JSF 2.0提醒:项目阶段

这篇关于javax.faces.PROJECT_STAGE的使用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆