JavaServer Faces

From Resin 3.0

(Difference between revisions)
Jump to: navigation, search
Line 5: Line 5:
 
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.
 
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]]:
+
To use the JSF Reference Implementation in Resin, configure the listener explicitly in [[web.xml]] or [[resin-web.xml]]:
  
 
  <listener>  
 
  <listener>  
Line 15: Line 15:
 
= MyFaces Implementation =
 
= MyFaces Implementation =
  
To use the MyFaces Implementation in Resin, configure the following listener in [[web.xml]]
+
To use the MyFaces Implementation in Resin, configure the following listener in [[web.xml]] or [[resin-web.xml]]:
  
 
  <listener>
 
  <listener>
 
   <listener-class>net.sourceforge.myfaces.webapp.StartupServletContextListener</listener-class>
 
   <listener-class>net.sourceforge.myfaces.webapp.StartupServletContextListener</listener-class>
 
  </listener>
 
  </listener>

Revision as of 22:44, 10 February 2006


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