How to activate Faces configuration editor in Ecli

2019-07-09 10:40发布

When I make a JSF2.0 project in eclipse, the opening of it's faces-config.xml file always starts the faces configuration editor. But now I have a Google AppEngine project and I have added JSF2 (and PrimeFaces) manually. And when I open the faces-config.xml file, the faces configuration editor doesn't start so I can edit this file only through xml source.

How can I activate the Faces Configuration Editor for this project?

2条回答
萌系小妹纸
2楼-- · 2019-07-09 11:18

Add the JSF facet in the Project Facets section of the project's properties.

enter image description here

查看更多
够拽才男人
3楼-- · 2019-07-09 11:28

Here's a way to achieve this, get the JBoss Tools 3.2.2 plugin from

http://download.jboss.org/jbosstools/updates/stable/helios/

(paste the link in eclipse, go to Help -> Install New Software) this is the link to for eclipse Helios , but you can for any other eclipse too (including Indigo)

all you need to select from the package is Web and Java EE Development

Than right click your WEB-INF folder which inside the war folder, then select New - > Faces Config and type the name of file as faces-config

That's it (checked myself just now)

查看更多
登录 后发表回答