JSF的最佳实践是什么? [英] What are the best practices for JSF?

查看:118
本文介绍了JSF的最佳实践是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我以前做过Java和JSP编程,但我是Java Server Faces的新手,想知道是否有一套JSF开发的最佳实践。

I have done Java and JSP programming in the past, but I am new to Java Server Faces and want to know if there's a set of best practices for JSF development.

推荐答案

一些提示:
了解JSF请求生命周期以及各种代码所在的位置。特别要找出为什么如果存在验证错误,您的模型值将不会更新。

Some tips: Understand the JSF request lifecycle and where your various pieces of code fit in it. Especially find out why your model values will not be updated if there are validation errors.

选择一个标签库,然后坚持使用它。花点时间确定您的需求并对不同的库进行原型设计。混合不同的taglib可能会对您的心理健康造成严重伤害。

Choose a tag library and then stick with it. Take your time to determine your needs and prototype different libraries. Mixing different taglibs may cause severe harm to your mental health.

这篇关于JSF的最佳实践是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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