简体   繁体   English

JSF构面在Eclipse中不可用

[英]JSF facets not available in Eclipse

So I am watching a tutorial about how to configure JSF in eclipse. 因此,我正在观看有关如何在Eclipse中配置JSF的教程。 I understand that you click file -> new -> Dynamic Web Project. 我了解您单击文件->新建->动态Web项目。

And then it gives you a few options. 然后,它为您提供了一些选择。 The Target Runtime will be (for me) Apache Tomcat version 8, and dynamic web module version will be 3.0. (对我而言)目标运行时将是Apache Tomcat版本8,动态Web模块版本将是3.0。 And in the configuration drop-down you are supposed to see Java Server Faces 2.0v or 2.1v, but I do not have that option. 在配置下拉列表中,您应该看到Java Server Faces 2.0v或2.1v,但是我没有该选项。

Does anyone know why? 有人知道为什么吗?

That can happen if you started with plain "Eclipse IDE for Java Developers" instead of with "Eclipse IDE for Java EE Developers" and then manually added some plugins on it. 如果从普通的“ Java开发人员的Eclipse IDE”开始,而不是从“ Java EE开发人员的Eclipse IDE”开始,然后在其上手动添加一些插件,则可能会发生这种情况。 Throw away your current Eclipse install and restart clean with " Eclipse IDE for Java EE Developers ". 放弃当前的Eclipse安装并使用“ Eclipse IDE for Java EE Developers ”重新启动。

If you dont see the JSF options, then its not part of your original eclipse version. 如果您没有看到JSF选项,那么它不是您的原始Eclipse版本的一部分。 In that case, you need to download the extra tools that you want. 在这种情况下,您需要下载所需的其他工具。 Go to Help -> Install New Software and then type the following URL in the box http://download.jboss.org/jbosstools/updates/stable/kepler This URL is for Kepler version of Eclipse. 转到“帮助”->“安装新软件”,然后在http://download.jboss.org/jbosstools/updates/stable/kepler框中键入以下URL。该URL适用于Eclipse的Kepler版本。 You need to change it according to your eclipse version. 您需要根据Eclipse版本进行更改。 jBossTools have JSF features. jBossTools具有JSF功能。 Restart the eclipse once the s/w is installed successfully. s / w安装成功后,请重新启动eclipse。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM