JBoss 4.0支持的最高JSF版本? [英] Highest supported JSF version for JBoss 4.0?

查看:130
本文介绍了JBoss 4.0支持的最高JSF版本?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用jboss 4.0和Java 1.5.我想使用JSF,但我知道此版本适合JSF 1.1版本.是否可以在JBoss 4.0上使用最新的JSF版本?

I am using jboss 4.0 and Java 1.5. I want to use JSF, but I know that this version is fit to JSF 1.1 version. Is it possible to use the latest JSF version on JBoss 4.0?

推荐答案

由于JSF API是在JSP/Servlet API之上构建的,因此,最大支持的JSF版本取决于最大支持的JSP/Servlet版本.

As JSF API is built on top of JSP/Servlet API, the maximum supported JSF version depends on the maximum supported JSP/Servlet version.

  • JSF 1.0和1.1至少需要Servlet 2.4/JSP 2.0.

  • JSF 1.0 and 1.1 requires a minimum of Servlet 2.4 / JSP 2.0.

JSF 1.2可在Servlet 2.4上运行,但至少需要与Servlet 2.5紧密相关的JSP/EL 2.1,因此毕竟需要Servlet 2.5.如果用 Facelets 1.x 替代JSP 2.1作为默认视图技术,则可以在Servlet 2.4上使用JSF 1.2.

JSF 1.2 works on Servlet 2.4, but requires a minimum of JSP/EL 2.1 which goes hand in hand with Servlet 2.5, so it requires after all Servlet 2.5. If you replace JSP 2.1 by Facelets 1.x as default view technology, then you can use JSF 1.2 on Servlet 2.4.

默认情况下使用Facelets 2.x的JSF 2.0要求最低的EL 2.1与Servlet 2.5息息相关,因此它毕竟需要Servlet 2.5.如果您提供自己的EL 2.1 API/impl,则可以从理论上讲在Servlet 2.4上运行JSF 2.0.

JSF 2.0 which uses by default Facelets 2.x requires a minimum of EL 2.1 which goes hand in hand with Servlet 2.5, so it requires after all Servlet 2.5. If you supply your own EL 2.1 API/impl, then you can in theory run JSF 2.0 on Servlet 2.4.

JSF 2.1至少需要 Servlet 3.0和Java 1.6(6.0).

JSF 2.1 requires a minimum of Servlet 3.0 and Java 1.6 (6.0).

JBoss 4.x是Servlet 2.4容器.因此,如果您坚持使用JSP,那么您最多可以使用JSF 1.1.但是,如果用Facelets 1.x替换JSP,则可以使用JSF 1.2. JSF 1.2提供了最重要的优点,即摆脱<f:verbatim>,使用<f:setPropertyActionListener>,使用@PostConstruct等的可能性.

JBoss 4.x is a Servlet 2.4 container. So if you stick to JSP, then you can at highest use JSF 1.1. But if you replace JSP by Facelets 1.x, then you can use JSF 1.2. JSF 1.2 offers as the most important advantages the possibility to get rid of <f:verbatim>, to use <f:setPropertyActionListener>, to use @PostConstruct, etc.

JSF 2.0是可能的,但是我不保证它会100%正常工作,因为我还没有完全意识到任何可能的副作用.到目前为止,我仅在一个非常基本的测试页(带有ajax表单)和Tomcat 5.5上的视图作用域bean上成功运行了它.当它进入复杂系统时,它可能会失败.另请参见在Servlet 2.4容器上运行JSF 2.0 .

JSF 2.0 is in theory possible, but I don't guarantee that it will work 100% as I am not fully aware of any possible side effects. I have as far only run it successfully with a very basic test page with an ajax form and a view scoped bean on Tomcat 5.5. It might fail when it goes into the complex. See also Running JSF 2.0 on Servlet 2.4 container.

这篇关于JBoss 4.0支持的最高JSF版本?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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