Eclipse autocomplete (content assist) with facelets (jsf) and xhtml

前端 未结 10 1277
时光说笑
时光说笑 2020-11-27 02:45

How to activate eclipse (3.5, WTP) content assist in .xhtml pages for JSF (1.2) tags, using facelets? It works in .jsp files, but not xhtml.

I google a lot, and in m

10条回答
  •  失恋的感觉
    2020-11-27 03:38

    In Eclipse Indigo (3.7) adding *.xhtml as a jsp does not work.

    Adding a project facet solves the issue:

    Right click on the project -> Preferences -> Project Facets -> Click on "JavaServer Faces", version should most probably be 2.0.

    Then it asks for a library, you can click on "disable...", because most probably you already would have the jars configured. I don't have mine as a library so I ignored that part.

    Screenshot: enter image description here

提交回复
热议问题