JavaServer Faces

From Resin 3.0

(Difference between revisions)
Jump to: navigation, search
 
Line 1: Line 1:
 
[[Category:Third Party]]
 
[[Category:Third Party]]
 +
 +
= 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.
 
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.
Line 10: Line 12:
  
 
An alternative is to configure the [[JspServlet]] to search for .tld files at startup.
 
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]]
 +
 +
<listener>
 +
  <listener-class>net.sourceforge.myfaces.webapp.StartupServletContextListener</listener-class>
 +
</listener>

Revision as of 22:43, 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:

<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

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