CentraSite Documentation : Working with the CentraSite Business UI : Administering the Business UI : CentraSite Business UI Pluggable Architecture : Extension Points for Customizing Content Pages : Add Portlet : Implement Portlet as an Extension
Implement Portlet as an Extension
Usage
Define a portlet of type "custom" in the 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 (e.g., Expand, Collapse or Close) through the user interface, CentraSite internally sends a corresponding actionId to the GWT extension.
Copyright © Software AG, Darmstadt, Germany.

Product LogoContact Support   |   Community   |   Feedback