Ecplise autocomplete primefaces tags [duplicate]

旧城冷巷雨未停 提交于 2019-12-01 03:25:06

I had the same problem and none of the solutions posted solved (i already had primefaces jar in my classpath).

I use a eclipse project format, and in the .settings folder, the file "org.eclipse.wst.common.project.facet.core.xml" had this properties:

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

I changed to:

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

And it worked. Sure it was a wrong configuration, but can be useful to someone. Ps: these properties can be changed in project facets on eclipse project properties, but in some cases it´s better change directly in the file.

By default we don't get automcomplete for PrimeFaces tag in Eclipse. To enable AutoComplete, Go to Window-->Preferences-->General-->ContentTypes Select JSP and add .xhtml as file association.

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