IBM Portlet Bridge for JavaServer Faces (JSF) 2.0 を構成します。
このタスクについて
制約事項: WebSphere® Application Server traditional バージョン 9.0 のデフォルトの JavaServer Faces 実装、JSF 2.2 を使用する場合、JSF ポートレット・ブリッジは機能しません。
手順
- portlet.xml ファイルを開き、以下のように JSF 2.0 ポートレット・ブリッジのポートレット・クラスを変更します。
<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>
- faces-config.xml ファイルを開き、JSF 2.0 ポートレット・ブリッジの変数リゾルバー、ビュー・ハンドラー、およびリソース・ハンドラーのエントリーを追加します。
<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>
次のタスク
ポートレット・プロジェクトにカスタム・ポートレット・クラスがある場合、以下の変更も必要です。
- portlet.xml ファイル内の portlet-class エントリーが、使用されている特定のカスタム・ポートレット・クラスを指すようにします。
- そのポートレット・クラスを変更して、IBM Portlet Bridge for JSF 2.0 の com.ibm.faces20.portlet.FacesPortlet クラスを拡張します。