eclipse/java server faces-如何为jsf 2.1配置facets项目

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/11356494/
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

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-19 18:28:51  来源:igfitidea点击:

eclipse/java server faces- how to configure a facets project for jsf 2.1

javaeclipsejsfjakarta-eejsf-2

提问by Arvind

I am trying to create a JSF 2.1 Project in Eclipse Java EE IDE.

我正在尝试在 Eclipse Java EE IDE 中创建一个 JSF 2.1 项目。

In one screen, Eclipse asks for JSF Implementation Libary- here I have defined JSF 2.1.10 as a JSF Implementation Library- with the JAR files

在一个屏幕中,Eclipse 要求提供 JSF 实现库——这里我已经将 JSF 2.1.10 定义为 JSF 实现库——带有 JAR 文件

jsf-api-2.1.10.jar 

and

jsf-impl-2.1.10.jar.

However after adding the above implementation library, I get the following error message in the same screen of Eclipse IDE--

但是在添加了上述实现库之后,在Eclipse IDE的同一个屏幕中,我得到了以下错误信息——

 Required class javax.faces.FactoryFinder does not exist in selected libraries.

I even added Apache MyFaces Core 2.1.8 and Mojarra 2.1.10, but the above error message refuses to go away... What am I missing here?

我什至添加了 Apache MyFaces Core 2.1.8 和 Mojarra 2.1.10,但上面的错误消息拒绝消失......我在这里错过了什么?

How do I configure and set up a JSF 2.1 project correctly in Eclipse Java EE IDE?

如何在 Eclipse Java EE IDE 中正确配置和设置 JSF 2.1 项目?

Thanks...

谢谢...

回答by kfatih

This is my solution:

这是我的解决方案:

Download Library with Eclipse

使用 Eclipse 下载库

*Eclipse Juno

*日食朱诺

回答by Sai Ye Yan Naing Aye

You should click JaveServerfaces tag of your eclipse Project Facet when creating your project.See this

创建项目时,您应该单击 Eclipse Project Facet 的 JaveServerfaces 标记。请参阅此内容

enter image description here

在此处输入图片说明