[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.webtools.jsf] Re: Faces Config Editor only showing Source tab

Cameron Bateman wrote:

If the faces-config.xml you are opening is outside the WebContent folder hierarchy of a dynamic web project, I believe we disable the graphical tabs.

The file is located at WebContent/WEB-INF/faces-config.xml. However, the project in question began as a simple Java project. It was subsequently upgraded to a Dynamic Web Project manually.


It turns out that I never had the graphical tabs enabled for this specific project, but they are visible for projects I created using the Ganymede new project wizards, so I started looking at the .classpath and .project files.

I opened the project properties and added the JavaServer Faces facet, and now the graphical tabs are visible. Looking at what got changed, I see the new entries shown below.

Michael

web.xml
	<servlet>
		<servlet-name>Faces Servlet</servlet-name>
		<servlet-class>
		javax.faces.webapp.FacesServlet</servlet-class>
		<load-on-startup>1</load-on-startup>
	</servlet>


classpath
<classpathentry exported="true" kind="con" path="org.eclipse.jst.jsf.core.internal.jsflibrarycontainer/Facelets">
<attributes>
<attribute name="org.eclipse.jst.component.dependency" value="/WEB-INF/lib"/>
</attributes>
</classpathentry>
<classpathentry exported="true" kind="con" path="org.eclipse.jst.jsf.core.internal.jsflibrarycontainer/JSTL">
<attributes>
<attribute name="org.eclipse.jst.component.dependency" value="/WEB-INF/lib"/>
</attributes>
</classpathentry>