为什么使用 JSF 1.2 而不是 JSF 2.0
在寻找问题的解决方案时,我编写了一个 JSF 2.0 应用程序,99% 的问题和答案都引用了 JSF 1.2
我知道存在差异(即 1.2 中的许多导航规则使用特殊的 xml 文件,而 2.0 则没有)不要这样做)
大多数人似乎都在使用 1.2,这有什么原因吗?是不是更好?JSF 2.0 是否太新而没有人了解它?
when searching for solutions to problems I have writing a JSF 2.0 application, 99% of the questions and answers refer to JSF 1.2
I know there are differences (ie. a lot of nav rules in 1.2 use a special xml file, and 2.0 doesn't do that)
is there a reason that most people seem to be using 1.2? is it better, is JSF 2.0 too new and no one knows anything about it?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
在Java EE世界中,商业公司的升级相对缓慢。仅当一项新技术在一两年甚至更长时间后成熟证明了自己时,它们才会升级,这种情况并不罕见。 JSF 1.0 也被几乎所有人都跳过了。大多数只从 JSF 1.1 或 1.2 开始。另外,JSF 1.2 存在了相对较长的时间,这就是为什么大多数现有 JSF 问题/答案都涉及 JSF 1.2。然而,目前我在 Stackoverflow 上看到了一种趋势,即与 JSF 1.x 相比,越来越多的 JSF 2.0 问题被提出和回答。
如果您遇到 JSF 2.0 特定问题但尚未找到答案,请在此处提问。这样我们就可以共同构建一个伟大的知识库。这就是 Stackoverflow 的意义所在。如果您探索/搜索 jsf-2.0 标签和常见问题,您会发现几个很棒的 JSF 2.0 特定问题和答案。
我的建议是坚持使用 JSF 2.0。它比 JSF 1.2 好很多。
In Java EE world, business companies upgrade relatively slow. It's not uncommon that they only upgrade when the maturity of a new technology has proven itself after one or two years or even more. JSF 1.0 was also by almost everyone skipped. Most started with JSF 1.1 or 1.2 only. Also, JSF 1.2 existed for relatively a long time, that's why most of the existing JSF questions/answers concerns JSF 1.2. However, currently I see here at Stackoverflow a trend that more and more JSF 2.0 questions are been asked and answered as compared to JSF 1.x.
If you have a JSF 2.0 specific issue for which you can't find an answer yet, just ask it here. This way we can build together towards a great knowledge base. That's where Stackoverflow is all about. If you explore/search the jsf-2.0 tag and the frequently asked questions, you'll find several great JSF 2.0 specific questions and answers.
My recommendation would be, stick to JSF 2.0. It's so much better than JSF 1.2.