Saturday, October 6, 2007

JSF & Portlet

http://wiki.apache.org/myfaces/CreatingJSFPortlets

Option 1: MyFacesGenericPortlet

  1. Make sure your JSF MyFaces application runs as a stand-alone servlet.

  2. Remove any redirects from your faces-config.xml. Portlets can not handle these.

  3. Create a Portlet WAR as per the instructions for your Portlet container. Make sure it contains everything that was included in step 1.

  4. Update your portlet.xml file as follows:


org.apache.myfaces.portlet.MyFacesGenericPortlet





default-view
/some_view_id_from_faces-config








default-view-selector
com.foo.MyViewSelector

No comments: