WAS v8.5 > Develop applications > Develop web applications > Develop web applications > Develop JSF files

Configure Portlet Bridge for JavaServer Faces

Use this task to configure IBM Portlet Bridge for JavaServer Faces (JSF) 2.0. Portlet Bridge for JavaServer Faces is available as v8.0.0.2.

  1. Open the portlet.xml file and modify the portlet class for JSF 2.0 portlet bridge, as follows:

      <portlet-class>com.ibm.faces20.portlet.FacesPortlet</portlet-class> <init-param> <name>com.ibm.faces.portlet.page.view</name> <value>/TestProjectView.xhtml</value> <init-param>
  2. Open the faces-config.xml file and add the JSF 2.0 portlet bridge variable resolver, view handler, and resource handler entry

      <application> <variable-resolver>com.ibm.faces20.portlet.PortletVariableResolver</variable-resolver> <view-handler>com.ibm.faces20.portlet.FaceletPortletViewHandler</view-handler> <resource-handler>com.ibm.faces20.portlet.httpbridge.PortletResourceHandler</resource-handler> </application>

If the portlet project has a custom portlet class, these changes are also necessary:


Related concepts:

JavaServer Faces
JWL
JavaServer Faces
Portlets


Related


Configure JavaServer Faces implementation


+

Search Tips   |   Advanced Search