Package org.exoplatform.webui.core
Class UIPortletApplication
java.lang.Object
org.exoplatform.webui.core.UIComponent
org.exoplatform.webui.core.UIContainer
org.exoplatform.webui.core.UIApplication
org.exoplatform.webui.core.UIPortletApplication
- All Implemented Interfaces:
Serializable
Root UI component of portlets written using GateIn WebUI framework should extends this class
There are 3 WebUI lifecycle methods, that are called during JSR 286 portlet lifecycle :
- processDecode - decode and bind parameters from the request to WebUI component
- processAction - triggered when there is a request for portlet ActionURL, or a WebUI event
- processRender - mapped to JSR 286 render method
- serveResource - mapped to JSR 286 serveResource method
Portlet request go through this class and then be delegated to child WebUI components with the help of UIApplicationLifecycle. Use ComponentConfig annotation to config lifecycle class for WebUI component.
This class also provides machanism to show a WebUI popup message
There are 3 WebUI lifecycle methods, that are called during JSR 286 portlet lifecycle :
- processDecode - decode and bind parameters from the request to WebUI component
- processAction - triggered when there is a request for portlet ActionURL, or a WebUI event
- processRender - mapped to JSR 286 render method
- serveResource - mapped to JSR 286 serveResource method
Portlet request go through this class and then be delegated to child WebUI components with the help of UIApplicationLifecycle. Use ComponentConfig annotation to config lifecycle class for WebUI component.
This class also provides machanism to show a WebUI popup message
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.exoplatform.webui.core.UIContainer
UIContainer.SelectTabActionListener -
Field Summary
FieldsFields inherited from class org.exoplatform.webui.core.UIApplication
logFields inherited from class org.exoplatform.webui.core.UIComponent
AJAX_ASYNC, config, OBJECTID, UICOMPONENT, uiparent, USE_WEBUI_RESOURCES -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintDeprecated.intDeprecated.Return the common UIPopupMessagesvoidprocessRender(WebuiApplication app, WebuiRequestContext context) The default processRender for an UIPortletApplication does nothing if the current WindowState in the render request is MINIMIZED.voidvoidserveResource(WebuiRequestContext context) Root uicomponent of a portlet should override this method to leverage serveResource that JSR286 offersvoidsetMinHeight(int minHeight) Deprecated.voidsetMinWidth(int minWidth) Deprecated.Methods inherited from class org.exoplatform.webui.core.UIApplication
addMessage, addMessage, clearMessages, findComponentById, getLastAccessApplication, getUIComponentName, processAction, renderBlockToUpdate, setLastAccessApplicationMethods inherited from class org.exoplatform.webui.core.UIContainer
addChild, addChild, findComponentOfType, findFirstComponentOfType, getChild, getChild, getChildById, getChildren, hasChildren, removeChild, removeChildById, renderChild, renderChild, renderChild, renderChild, renderChildren, renderUIComponent, replaceChild, replaceChild, setChildren, setRenderedChild, setRenderedChild, setRenderedChildrenOfTypesMethods inherited from class org.exoplatform.webui.core.UIComponent
broadcast, buildModelObject, createEvent, createUIComponent, createUIComponent, createUIComponent, doAsync, event, event, event, getAncestorOfType, getApplicationComponent, getComponentConfig, getId, getName, getParent, getTemplate, getTemplateResourceResolver, isRendered, loadConfirmMesssage, processDecode, processRender, renderEventURL, setComponentConfig, setComponentConfig, setId, setParent, setRendered, setRenderSibling, url, url, url
-
Field Details
-
VIEW_MODE
-
EDIT_MODE
-
HELP_MODE
-
CONFIG_MODE
-
-
Constructor Details
-
UIPortletApplication
- Throws:
Exception
-
-
Method Details
-
getUIPopupMessages
Description copied from class:UIApplicationReturn the common UIPopupMessages- Overrides:
getUIPopupMessagesin classUIApplication- Returns:
- UIPopupMessages
-
getMinWidth
Deprecated. -
setMinWidth
Deprecated. -
getMinHeight
Deprecated. -
setMinHeight
Deprecated. -
renderChildren
- Overrides:
renderChildrenin classUIApplication- Throws:
Exception
-
processRender
The default processRender for an UIPortletApplication does nothing if the current WindowState in the render request is MINIMIZED. Otherwise, it handles two cases: A. Ajax is used --------------- If Ajax is used and that the entire portal should not be re rendered, then an AJAX fragment is generated with information such as the portlet id, the portlet title, the portlet modes, the window states as well as the HTML for the block to render B. A full render is made ------------------------ a simple call to the method super.processRender(context) which will delegate the call to all the Lifecycle components- Throws:
Exception
-
serveResource
Root uicomponent of a portlet should override this method to leverage serveResource that JSR286 offers- Parameters:
context- - WebUI context- Throws:
Exception
-