Problems configuring JSF 2.0 on Eclipse Indigo

为君一笑 提交于 2019-12-01 18:10:21

This is an Eclipse quirk. See also Eclipse bug 201792 which is never been fixed.

The only way to change the JSF Facet version is by editing the following line of the /.settings/org.eclipse.wst.common.project.facet.core.xml file

<installed facet="jst.jsf" version="1.2"/>

to

<installed facet="jst.jsf" version="2.0"/>

Other than that, you can also just ignore it altogether. Changing the version of that facet really doesn't do any new magic for you anyway. The final WAR build still contains the JSF 2.0 libs and if you have redeclared <faces-config> root declaration of /WEB-INF/faces-config.xml file to comply JSF 2.0, then there should be no problems. If you still encounter problems with using Facelets (XHTML files, as you say yourself), then you should ask a new and more specific question about that here.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!