JBoss.org Community Documentation

2.1. portlet.xml

These are the exact same settings for any JSR-301 portlet.

      <portlet>
         <portlet-name>yourPortletName</portlet-name>
         <portlet-class>
            javax.portlet.faces.GenericFacesPortlet
         </portlet-class>

         <init-param>
            <name>javax.portlet.faces.defaultViewId.view</name>
            <value>/welcome.xhtml</value>
         </init-param>

         <init-param>
            <name>javax.portlet.faces.defaultViewId.edit</name>
            <value>/jsf/edit.xhtml</value>
         </init-param>

         <init-param>
            <name>javax.portlet.faces.defaultViewId.help</name>
            <value>/jsf/help.xhtml</value>
         </init-param>

          

When preserveActionParams is set to TRUE, the bridge must maintain any request parameters assigned during the portlet's action request. The request parameters are maintained in the"bridge request scope". When this attribute isn't present or is FALSE the action's request parameters are only maintained for the duration of theportlet request scope.

      <init-param>
         <param-name>javax.portlet.faces.preserveActionParams</param-name>
         <param-value>true</param-value>
      <init-param>