Configuring Portlet Bridge for JavaServer Faces 2.0

Use this task to configure IBM® Portlet Bridge for JavaServer Faces (JSF) 2.0.

About this task

Portlet Bridge for JavaServer Faces is available as of version 8.0.0.3.

Procedure

  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 el resolver, view handler, and resource handler entry.
    <application>
    		<el-resolver>com.ibm.faces20.portlet.PortletELResolver</el-resolver>
    		<view-handler>com.ibm.faces20.portlet.FaceletPortletViewHandler</view-handler>
    		<resource-handler>com.ibm.faces20.portlet.httpbridge.PortletResourceHandler</resource-handler>
    </application>
  3. Register the listener in the web.xml file.
    <listener>
    		<listener-class>com.ibm.faces20.portlet.httpbridge.PortletRequestAttributesListener
    		</listener-class>
    </listener>

What to do next

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



In this information ...


Related concepts
Related tasks

IBM Redbooks, demos, education, and more

(Index)

Use IBM Suggests to retrieve related content from ibm.com and beyond, identified for your convenience.

This feature requires Internet access.

Task topic Task topic    

Terms and conditions for information centers | Feedback

Last updatedLast updated: Feb 6, 2014 8:11:25 PM CST
http://www14.software.ibm.com/webapp/wsbroker/redirect?version=matt&product=was-nd-mp&topic=tweb_portletbridge
File name: tweb_portletbridge.html