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

前端 未结 10 1292
时光说笑
时光说笑 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:25

    I had JBoss Tools installed and had JavaServer Faces facet configured for my project (in Eclipse Mars), but still didn't get any content assist from my .xhtml files. A solution not mentioned here is to choose Add JSF capabilities:

    Simply right click the project, and select Configure -> Add JSF Capabilities.

    It would look like the picture above but it would say Add JSF Capabilities instead of Remove JSF Capabilities. In the above picture, I had already added JSF capabilities.

提交回复
热议问题