Class Lifecycle<E extends UIComponent>
java.lang.Object
org.exoplatform.webui.core.lifecycle.Lifecycle<E>
- Direct Known Subclasses:
UIApplicationLifecycle,UIComponentDecorator.UIComponentDecoratorLifecycle,UIContainerLifecycle,UIFormLifecycle,UIPageLifecycle,UIPortalApplicationLifecycle,UIPortalLifecycle,UIPortletLifecycle
Created by The eXo Platform SAS May 7, 2006
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidprocessAction(E uicomponent, WebuiRequestContext context) voidprocessDecode(E uicomponent, WebuiRequestContext context) voidprocessRender(E uicomponent, WebuiRequestContext context) That method is the most generic one for every UIComponent that is bound to this Lifecycle object and the class that extends it without overriding the method.protected voidrenderTemplate(String template, WebuiBindingContext bcontext) The method allows to use Groovy templates to render the portal components.
-
Field Details
-
log
protected static org.exoplatform.services.log.Log log
-
-
Constructor Details
-
Lifecycle
public Lifecycle()
-
-
Method Details
-
processDecode
- Throws:
Exception
-
processAction
- Throws:
Exception
-
processRender
That method is the most generic one for every UIComponent that is bound to this Lifecycle object and the class that extends it without overriding the method. The template associated to the specified UIComponent is rendered using renderTemplate(). A WebuiBindingContext context object provides the template with all the necessary objects to render. (WebuiBindingContext extends the Map class)- Throws:
Exception
-
renderTemplate
The method allows to use Groovy templates to render the portal components.- Add a decorator object into the context
- Get a reference to the TemplateService
- If the system property "exo.product.developing" is set to
true, the templates are not cached - If the writer used to render the output is of type HtmlValidator, which is the case in the Portal environment, then it is also possible to validate the generated HTML (for debugging purposes)
- The template and the context are then merged to generate the HTML fragment
- Throws:
Exception
-