PUBLIC - Liferay Faces
  1. PUBLIC - Liferay Faces
  2. FACES-1471

Support Liferay extended portlet modes via LiferayGenericFacesPortlet

    Details

    • Similar Issues:
      Show 5 results 

      Description

      The Portlet API provides three portlet modes:
      PortletMode.VIEW
      PortletMode.EDIT
      PortletMode.HELP

      Liferay Portal provides some additional vendor-specific portlet modes:
      LiferayPortletMode.ABOUT
      LiferayPortletMode.CONFIG
      LiferayPortletMode.EDIT_DEFAULTS
      LiferayPortletMode.EDIT_GUEST
      LiferayPortletMode.PREVIEW
      LiferayPortletMode.PRINT

      This task involves adding support for these Liferay portlet modes.

      Example usage of "Print" mode:

      In WEB-INF/portlet.xml, use the following portlet class:

      <portlet-class>com.liferay.faces.bridge.GenericLiferayFacesPortlet</portlet-class>

      Then specify a default JSF viewId for the mode:

      <init-param>
      	<name>javax.portlet.faces.defaultViewId.print</name>
      	<value>/views/portletViewMode.xhtml</value>
      </init-param>
      

      And finally, add the print mode to the list of supported modes for the portlet:

      <supports>
      	...
      	<portlet-mode>print</portlet-mode>
      </supports>
      

        Activity

        There are no comments yet on this issue.

          People

          • Assignee:
            Neil Griffin
            Reporter:
            Neil Griffin
            Participants of an Issue:
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development

                Structure Helper Panel