Eclipse IDE 是否支持 JSF 2.0?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/2769880/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Does the Eclipse IDE support JSF 2.0?
提问by Shane
I have the WTP 3.1 plugin installed and have also installed the Glassfish v3 plugin. I am able to register my server.
我安装了 WTP 3.1 插件并且还安装了 Glassfish v3 插件。我可以注册我的服务器。
When I create a dynamic web project, I can see that the maximum dynamic web module version available is 2.5. I then choose the default configuration for Glassfish v3 but, when I look at it JSF, it is not selected by default. When I select it, the maximum version available is 1.2.
当我创建一个动态 web 项目时,我可以看到可用的最大动态 web 模块版本是 2.5。然后我选择 Glassfish v3 的默认配置,但是当我查看 JSF 时,默认情况下没有选择它。当我选择它时,可用的最大版本是 1.2。
I want to use JSF with facelets - does Eclipse support this? I can't seem to find anything helpful on the Eclipse WTP site.
我想将 JSF 与 facelets 一起使用 - Eclipse 支持吗?我似乎在 Eclipse WTP 站点上找不到任何有用的信息。
采纳答案by BalusC
Java EE 6 / JSF 2.0 is relativelynew. Most tools are already ready, but Eclipse has to catch up it yet.
Java EE 6 / JSF 2.0相对较新。大多数工具已经准备就绪,但 Eclipse 还必须赶上它。
The status as far:
目前的状态:
IntelliJ Ultimate Editionwas earlyin this. Unfortunately not freeware. Note: the free Community Edition doesn't provide tools for much of Java EE, let alone JSF.
Netbeans 6.8came a bit lateralmost full Java EE 6 support, including JSF 2.0.
Eclipse for Java EEplanned to support Facelets in Galileo, but it was cancelled and postponed to the successor Helioswhich is
currently in one of its latest Release Candidate stagesbeen released at 24 July 2010. Helios for Java EE will ship with full fledged Java EE 6 support, including JSF 2.0.
IntelliJ Ultimate Edition很早就出现了。不幸的是不是免费软件。注意:免费的 Community Edition 没有为大部分 Java EE 提供工具,更不用说 JSF 了。
Netbeans的6.8传来了一下后几乎完整的Java EE 6的支持,包括JSF 2.0。
Java EE 的 Eclipse计划在 Galileo 中支持 Facelets,但它被取消并推迟到继任者Helios,后者
目前处于其最新的候选发布阶段之一,于 2010 年 7 月 24 日发布。Java EE 的 Helios 将与成熟的 Java EE 一起发布6 支持,包括 JSF 2.0。
As of now, it just works fine in Eclipse Ganymede/Galileo when you select JSF 1.2 and uses JSF 2.0 libraries. You'll only miss some code assistance which may be useful for JSF 2.0, but you can write code as good yourself.
到目前为止,当您选择 JSF 1.2 并使用 JSF 2.0 库时,它在 Eclipse Ganymede/Galileo 中运行良好。您只会错过一些可能对 JSF 2.0 有用的代码帮助,但您可以自己编写代码。
回答by kpolice
Use Eclipse with JBoss Tools Plugin. It has support for JSF2 and CDI.
将 Eclipse 与 JBoss 工具插件配合使用。它支持 JSF2 和 CDI。
回答by Thorbj?rn Ravn Andersen
Note, that you can do JSF 2.0 development in Eclipse, but not with as much tool support as might come later.
请注意,您可以在 Eclipse 中进行 JSF 2.0 开发,但没有像以后可能提供的那么多工具支持。
You can always edit xhtml files directly as XML-files (and have the namespaces registered), and have Glassfish deployments. I've done that, with stock Eclipse 3.5.2 Java EE edition, and the Glassfish plugin.
您始终可以直接将 xhtml 文件编辑为 XML 文件(并注册命名空间),并进行 Glassfish 部署。我已经用 Eclipse 3.5.2 Java EE 版本和 Glassfish 插件做到了这一点。
回答by Andy
Have a read on http://weblogs.java.net/blog/2009/05/18/using-ide-write-jsf-20-app
阅读http://weblogs.java.net/blog/2009/05/18/using-ide-write-jsf-20-app
It describe in details on how to setup your eclipse for jsf 2.0 development.
它详细描述了如何为 jsf 2.0 开发设置 eclipse。