IceFaces 2.0.0 不支持 JSP
上周 IceFaces 发布了新版本 2.0.0。它已经处于测试版本很长时间了,终于出了最终版本。在发行说明中它被指定为“ICEfaces 2.0 不支持 JSP - 使用 Facelets”。这意味着什么?。难道我们不应该写任何JSP吗?那么在 JSP 文件上运行的现有项目又如何呢?
请告诉我。
Last week IceFaces has released its new version 2.0.0. It was long been in the beta version and finally came out to final version. In the release notes it is specified as "JSPs are not supported by ICEfaces 2.0 - use Facelets". What does that mean?. Are we not suppose to write any JSP's?. What about the existing projects running on JSP files.
Please advise me.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
IceFaces 并不是特别不支持 JSP。事实上,IceFaces 2.0.0 基于 JSF 2.0,并且它利用了一些 JSF 2.0 的特定功能。
JSP 根本不支持许多新的 JSF 2.0 特定功能。因此,如果任何技术依赖于这些功能,它就自动不支持 JSP。 (这就是为什么遗留 JSF 项目尽快从 JSP 迁移到 Facelets 如此重要的原因之一)。
我在维基百科关于 Facelets 的文章 (http://en.wikipedia) 上引用了一些权威来源.org/wiki/Facelets)。这是官方规范中的一个(强调我的)。
JSF 2.0(JSR 314,http://jcp.org/en/jsr/detail?id =314) 规范,维护版本 2,第 10.1 节:
It's not that IceFaces specifically doesn't support JSPs. It's the fact that IceFaces 2.0.0 is based on JSF 2.0 and it takes advantage of a couple of JSF 2.0 specific features.
A lot of the new JSF 2.0 specific features are simply not supported in JSP. So if any technology depends on those features, it automatically doesn't support JSP. (this is one reason why it's so important for legacy JSF projects to migrate from JSP to Facelets ASAP).
I put some references to authoritative sources on the wikepedia article about Facelets (http://en.wikipedia.org/wiki/Facelets). This is the one from the official specification (emphasis mine).
JSF 2.0 (JSR 314, http://jcp.org/en/jsr/detail?id=314) specification, maintenance release 2, section 10.1:
从 JSF 2.0 开始,Facelets 成为官方视图技术。即使支持 JSP,它也将是最小的。了解更多信息此处
From JSF 2.0, Facelets is the official view technology. Even if JSP is supported it will be minimal. Read more here