Problems configuring JSF 2.0 on Eclipse Indigo

前端 未结 1 2052
悲&欢浪女
悲&欢浪女 2021-01-18 18:28

I\'m developing a web application with JSF 2.0 on the IDE Eclipse Indigo (the last version).

But on Project ->Properties -> Project Facets, the option J

相关标签:
1条回答
  • 2021-01-18 18:46

    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.

    0 讨论(0)
提交回复
热议问题