API Management : CentraSite Developers Guide : Customizing CentraSite : Customization of CentraSite Business UI : Customizing Content Pages : Adding Portlets : Implement Portlet as a GTW Extension
Implement Portlet as a GTW Extension
Usage
Define a portlet of type custom in CentraSite Business UI.
Elements
renderPortletContent
*String portletId
*String contentId
*String commaSeparatedParam
executePortletAction
*String portletId
*String actionId
*String contentId
*String commaSeparatedParam
Abstract base class
IPortListener
Processing
When the Welcome page containing one or more custom type portlets is loaded in the CentraSite Business UI, the following steps are performed for each custom portlet:
*create an instance of class
*implement the method renderPortletContent (within the class instance) to render each custom portlet defined in the configuration file.
*implement the method executePortletAction (within the class instance) to render each action of a custom portlet defined in the configuration file.
Provided by
BusinessUI
Code
See the sample code
You can find the following sample code for defining a portlet as extension point in the CentraSiteBUIExtension.gwt.xml file that is provided in the demos folder under the CentraSite installation folder.
<!-- Use PortletListener by default -->
<replace-with
class="com.softwareag.centrasite.bui.extension.client.portlet.PortletListener">
<when-type-is
class="com.softwareag.centrasite.bui.extension.core.client.IPortletListener"/>
</replace-with>
Important:  
On a custom portlet defined as GWT extension point, whenever you execute a basic action (for example, Expand, Collapse, or Close) through the user interface, CentraSite internally sends a corresponding actionId to the GWT extension.
Copyright © 2015- 2016 Software AG, Darmstadt, Germany.

Product LogoContact Support   |   Community   |   Feedback