Class UIPortletLifecycle

java.lang.Object
org.exoplatform.webui.core.lifecycle.Lifecycle<UIPortlet>
org.exoplatform.portal.webui.application.UIPortletLifecycle

public class UIPortletLifecycle extends Lifecycle<UIPortlet>
Created by The eXo Platform SAS May 8, 2006
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected static final org.exoplatform.services.log.Log
     

    Fields inherited from class org.exoplatform.webui.core.lifecycle.Lifecycle

    log
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    This processAction method associated with the portlet UI component does the following work: 1) If the current request is one that target the portal than an event targeting a Portal level ActionListener is sent.
    void
    This methods of the Lifecycle writes into the output writer the content of the portlet 1) Create a RenderInput object and fill it with all the Request information 2) Call the portletContainer.render() method of the Portlet Container to get the HTML generated fragment 3) Then if the current request is an AJAX one, just write in the buffer the content returned by the portlet container 4) If not AJAX, then merge the content with the UIPortlet.gtmpl

    Methods inherited from class org.exoplatform.webui.core.lifecycle.Lifecycle

    processDecode, renderTemplate

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • LOG

      protected static final org.exoplatform.services.log.Log LOG
  • Constructor Details

    • UIPortletLifecycle

      public UIPortletLifecycle()
  • Method Details

    • processAction

      public void processAction(UIPortlet uicomponent, WebuiRequestContext context) throws Exception
      This processAction method associated with the portlet UI component does the following work: 1) If the current request is one that target the portal than an event targeting a Portal level ActionListener is sent. This case happen when the incoming request contains the parameter PortalRequestContext.UI_COMPONENT_ACTION (portal:action). When the event is broadcasted the methods is over 2) In other cases, the request targets the portlet either to a) change the portlet mode b) change the window state c) make a processAction() or render() call to the portlet container (Portlet API methods here) In those 3 cases, dedicated events are created and broadcasted and the portlet is added in the list of components to update within the AJAX call
      Overrides:
      processAction in class Lifecycle<UIPortlet>
      Throws:
      Exception
    • processRender

      public void processRender(UIPortlet uicomponent, WebuiRequestContext context) throws Exception
      This methods of the Lifecycle writes into the output writer the content of the portlet 1) Create a RenderInput object and fill it with all the Request information 2) Call the portletContainer.render() method of the Portlet Container to get the HTML generated fragment 3) Then if the current request is an AJAX one, just write in the buffer the content returned by the portlet container 4) If not AJAX, then merge the content with the UIPortlet.gtmpl
      Overrides:
      processRender in class Lifecycle<UIPortlet>
      Throws:
      Exception