+

Search Tips   |   Advanced Search

Configure JavaServer Faces implementation


Overview

For JSF we can use either...

The WAS JSF engine...


Configure the JSF implementation

From the WAS Admin console, go to...

...and select an implementation...

To set with wsadmin.sh:

Configure JSF engine parameters as required.


Notes

For multiple applications requiring different JSF implementations, separate the applications into different application servers or clusters, then follow these steps for each server/cluster. Alternatively, use an isolated shared library.

You do not need to add com.sun.faces.ConfigureListener or org.apache.myfaces.StartupConfigureListener to web.xml.

To use a third-party JSF implementation that is not shipped with the product...

  1. Add the third-party listener to the required web.xml file.

  2. Add the third-party JSF implementation JAR files and its required dependant JAR files to the application as an isolated shared library and associate it with the application:

    1. Move the JSF JAR files and all 3rd party libraries referenced by the JSF JAR files and UI component plugins (for example, PrimeFaces) to a directory outside of the application.

    2. Create the isolated shared library. See topic Create shared libraries for information about how to create the shared library.

    3. Ensure the classloader is set to PARENT_FIRST, the default value.

        Applications | Application Types | WebSphere enterprise applications | application_name | Class loading and update detection

    4. For a third-party MyFaces implementation, set the JSF implementation to Sun RI.

        Applications | Application Types | WebSphere enterprise applications | application_name | JSP and JSF options | JSF implementation | Sun RI

    5. For a different third-party JSF implementation, keep the JSF implementation set to the default value.

  3. Restart the application server.

We can also configure the JSF implementation on the Provide JSP reloading options for web modules panel for application installation and update wizards.


Related concepts

JavaServer Faces

  • JavaServer Faces widget library (JWL)
  • JavaServer Faces


    Related tasks

  • Configure Portlet Bridge for JavaServer Faces
  • Manage JavaServer Faces implementations
  • Create shared libraries
  • Associate shared libraries with applications or modules
  • JSF engine configuration parameters