Set Java Server Faces implementation
Use this task to specify which Java Server Faces implementation to use. Use the Apache MyFaces or the SUN Reference Implementation of JSF 1.2 or our own implementation.
Verify the application is configured for Java Server Faces (JSF) using the specific web.xml context parameters for the implementation that we have chosen.
The Application Server JSF engine determines if the SUN Reference Implementation 1.2 or Apache MyFaces 1.2 is used from the appserver runtime. If either is used, the correct listener class is registered with the Web container. You do not need to add the com.sun.faces.ConfigureListener or the org.apache.myfaces.StartupConfigureListener to web.xml.
If the you want to use a third party JSF implementation not shipped with WAS ND, keep the configuration set to the SUN RI, add the third party listener to web.xml that is required and add the third party implementation JAR files to the application as an isolated shared library.
We can also configure the JSF implementation on the Provide JSP reloading options for Web modules panel for application installation and update wizards.
- In the admin console panel, click Applications > Application Types > WebSphere enterprise apps > application_name > JSP and JSF options. Select one of the following implementations:
Option Description Sun Reference Implementation 1.2 Select this option to use the Sun Reference Implementation 1.2 JSF implementation. This is the default JSF implementation. MyFaces 1.2 Select this option to use the MyFaces 1.2 JSF implementation.
- To use our own JSF implementation, click Applications > Application Types > WebSphere enterprise apps > application_name > JSP and JSF options in the admin console.
- Select Sun Reference Implementation 1.2 as the JSF implementation.
- Add the implementation as an isolated shared library.
See Create shared libraries for details.
- Associate the isolated shared library to the Web module class loader in the application.
- Click Ok.
- Recompile the JSPs that contain the JSF implementation.
We can set the JSF engine configuration paramater, com.ibm.ws.jsf.JSF_IMPL_CHECK, to true to automatically mark the JSPs to recompile at application startup.
Results
If MyFaces is selected, then the MyFaces implementation is added to the application through an isolated shared library and the entire application uses the MyFaces implementation. Using both the SUN Reference Implementation and the MyFaces implementation within the same application is not supported.
Next steps
Set JSF engine parameters as necessary.
Set JSF engine parameters
Java Server Faces custom properties 
Related concepts
Java Server Faces
Related tasks
Manage Java Server Faces implementations using scripting
Related
JSF engine configuration parameters