JSF 1.0 与 JSF 2.0

发布于 2024-09-06 05:28:35 字数 181 浏览 1 评论 0原文

这两个版本的 JSF(JSF 1.0 和 JSF 2.0)有什么区别?由于我是java新手,我只发现差异在于架构层面。但是,从角度来看,我无法了解它对应用程序开发的影响有多大?

此外,JSF 和 Spring 所采用的 MVC 也不同。即使 JSF 改进了架构,Spring 的使用仍然更多。综上所述,Spring 的重要性是什么?

What is difference between these 2 version of JSF (JSF 1.0 and JSF 2.0)? As I am new to java, I only find that difference is at Architectural level. But, in perspective, I can't get how much it affects the application development ?

Also, the MVC imposed is different with JSF and Spring. Even if JSF has improved architecture, still Spring is much more in use. What is the importance of Spring with above point ?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

稍尽春風 2024-09-13 05:28:35

JSF 1.0 是 JSF 规范的第一个版本 (JSR127 FR1),已发布它是在 2004 年 3 月左右发布的。它有很多 bug 和缺点,此后不久,它在 2004 年 5 月左右通过 JSF 1.1 (JSR127 FR2) 得到了改进。后来由 JSF 1.2 (JSR252) 于 2006 年 5 月左右发布,其中主要是对 EL 和视图处理进行了改进和统一,使其不再与 JSP 紧密耦合。

JSF 2.0 是 JSF 规范 (JSR314) 的第二个主要版本,已发布大约在 2009 年 7 月。主要改进包括使用注释、参数化类型(泛型)、支持 GET 请求阿贾克斯权力视图 定义自定义范围的范围和能力资源处理并包含Facelets 作为默认视图技术(而不是传统的 JSP)。

另请参阅 JSF 2 中有哪些新增功能?

至于选哪一个,就选最新的吧。会更好的。这与询问您应该选择 Java 1.0 还是 Java 1.6 相同。


至于Spring部分,它只是一个IoC框架。没有它你也可以做得很好。您最终可以选择 EJB 和/或 CDI

JSF 1.0 was the first release of the JSF specification (JSR127 FR1), released around March 2004. It was pretty buggy and shortcoming and it was improved shortly thereafter with JSF 1.1 (JSR127 FR2) around May 2004. It was later succeeded by JSF 1.2 (JSR252) around May 2006 wherein mainly the EL and the view handling was improved and unified so that it's not tight-coupled to JSP anymore.

JSF 2.0 is the second major release of the JSF specification (JSR314), released around July 2009. Major improvements cover the use of annotations, parameterized types (generics), support for GET requests, ajaxical powers, new view scope and ability of defining custom scopes, resource handling and the inclusion of Facelets as default view technology (instead of the legacy JSP).

Also see What's new in JSF 2?

As to which one to choose, just pick the latest. It'll be better. It's the same as asking if you should choose Java 1.0 or Java 1.6.


As to the Spring part, it's just an IoC framework. You can do as good without it. You can eventually go for EJB and/or CDI.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文