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

查看:42
本文介绍了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

https://dzone.com/articles/jsf-20-新功能预览版
http://www.java-tutorial.ch/java-server-faces/jsf-project-stage

除了显示验证错误消息之外,是否还有其他用例可以证明此属性确实有帮助?我知道我们可以检查这个变量来识别环境并更改某些功能,但是 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天全站免登陆