JavaServer Faces

From Resin 3.0

Revision as of 04:06, 14 February 2006 by Sam (Talk | contribs)
Jump to: navigation, search


Sun Reference Implementation

The Sun reference implementation of Java Server Faces uses a listener in a .tld file for initialization. Resin in it's default configuration does not search for tld files because of the negative impact the search has on startup times.

To use the JSF Reference Implementation in Resin, configure the listener explicitly in web.xml or resin-web.xml:

<listener> 
  <listener-class>com.sun.faces.config.ConfigureListener</listener-class>  
</listener>

An alternative is to configure the JspServlet to search for .tld files at startup.

MyFaces Implementation

To use the MyFaces Implementation in Resin, configure the following listener in web.xml or resin-web.xml:

<listener>
  <listener-class>net.sourceforge.myfaces.webapp.StartupServletContextListener</listener-class>
</listener>
Personal tools