Configuration de Portlet Bridge for JavaServer Faces

Configure IBM Portlet Bridge for JavaServer Faces (JSF) 2.0.

Pourquoi et quand exécuter cette tâche

Restriction : The JSF Portlet Bridge does not function when you use the WebSphere Application Server Traditional Version 9.0 default JavaServer Faces implementation, JSF 2.2.

Procédure

  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>

Que faire ensuite

Si le projet de portlet a une classe de portlet personnalisée, ces modifications sont également nécessaires :
  • Point the portlet-class entry in the portlet.xml file to the particular custom portlet class used.
  • Modifiez la classe de portlet pour étendre la classe com.ibm.faces20.portlet.FacesPortlet à partir d'IBM Portlet Bridge for JSF 2.0.

Icône indiquant le type de rubrique Rubrique de tâche



Icône d'horodatage Dernière mise à jour: last_date
http://www14.software.ibm.com/webapp/wsbroker/redirect?version=cord&product=was-nd-mp&topic=tweb_portletbridge
Nom du fichier : tweb_portletbridge.html