Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » JavaServer Faces » Faces Config Editor only showing Source tab
Faces Config Editor only showing Source tab [message #476050] Fri, 31 October 2008 15:10 Go to next message
Michael Giroux is currently offline Michael GirouxFriend
Messages: 81
Registered: July 2009
Location: Phoenix, AZ
Member
I'm not sure what I managed to do to my Eclipse configuration, and/or
project, but the Faces Config Editor is no longer showing the various tabs
for managed beans, navigation, ... When I open my faces-config.xml file,
the Faces Config Editor overview screen flashes briefly, then the file
opens with only a source tab visible.

Any thoughts on what might cause this?
Re: Faces Config Editor only showing Source tab [message #476051 is a reply to message #476050] Fri, 31 October 2008 17:24 Go to previous messageGo to next message
Cameron Bateman is currently offline Cameron BatemanFriend
Messages: 481
Registered: July 2009
Senior Member
> project, but the Faces Config Editor is no longer showing the various tabs

Is the faces-config.xml either outside a JSF faceted project or outside a
sub-folder of WebContent?


--Cam
Re: Faces Config Editor only showing Source tab [message #476052 is a reply to message #476050] Fri, 31 October 2008 18:10 Go to previous messageGo to next message
Cameron Bateman is currently offline Cameron BatemanFriend
Messages: 481
Registered: July 2009
Senior Member
> project, but the Faces Config Editor is no longer showing the various tabs

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.


--Cam
Re: Faces Config Editor only showing Source tab [message #476053 is a reply to message #476052] Fri, 31 October 2008 21:17 Go to previous message
Michael Giroux is currently offline Michael GirouxFriend
Messages: 81
Registered: July 2009
Location: Phoenix, AZ
Member
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/Facele ts ">
<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>
Re: Faces Config Editor only showing Source tab [message #618720 is a reply to message #476050] Fri, 31 October 2008 17:24 Go to previous message
Cameron Bateman is currently offline Cameron BatemanFriend
Messages: 481
Registered: July 2009
Senior Member
> project, but the Faces Config Editor is no longer showing the various tabs

Is the faces-config.xml either outside a JSF faceted project or outside a
sub-folder of WebContent?


--Cam
Re: Faces Config Editor only showing Source tab [message #618721 is a reply to message #476050] Fri, 31 October 2008 18:10 Go to previous message
Cameron Bateman is currently offline Cameron BatemanFriend
Messages: 481
Registered: July 2009
Senior Member
> project, but the Faces Config Editor is no longer showing the various tabs

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.


--Cam
Re: Faces Config Editor only showing Source tab [message #618722 is a reply to message #476052] Fri, 31 October 2008 21:17 Go to previous message
Michael Giroux is currently offline Michael GirouxFriend
Messages: 81
Registered: July 2009
Location: Phoenix, AZ
Member
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/Facele ts ">
<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>
Previous Topic:Faces Config Editor only showing Source tab
Next Topic:Any way for References in Project to include XHTML references
Goto Forum:
  


Current Time: Thu Mar 28 18:28:29 GMT 2024

Powered by FUDForum. Page generated in 0.05341 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top