Class UIPortletLifecycle
java.lang.Object
org.exoplatform.webui.core.lifecycle.Lifecycle<UIPortlet>
org.exoplatform.portal.webui.application.UIPortletLifecycle
Created by The eXo Platform SAS May 8, 2006
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidprocessAction(UIPortlet uicomponent, WebuiRequestContext context) 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.voidprocessRender(UIPortlet uicomponent, WebuiRequestContext context) 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.gtmplMethods inherited from class org.exoplatform.webui.core.lifecycle.Lifecycle
processDecode, renderTemplate
-
Field Details
-
LOG
protected static final org.exoplatform.services.log.Log LOG
-
-
Constructor Details
-
UIPortletLifecycle
public UIPortletLifecycle()
-
-
Method Details
-
processAction
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:
processActionin classLifecycle<UIPortlet>- Throws:
Exception
-
processRender
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:
processRenderin classLifecycle<UIPortlet>- Throws:
Exception
-