Implement Portlet as an Extension
Usage | Use this to define a custom portlet in CentraSite Business UI. |
Elements | renderPortletContent  String portletId  String contentId  String commaSeparatedParam executePortletAction  String portletId  String actionId  String contentId  String commaSeparatedParam |
Abstract base class | IPortletListener |
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 sample code for defining the custom portlet as an extension point in the file CentraSiteBUIExtension.gwt.xml. You can find the file in the demos folder in the <CentraSiteInstall_Directory>.
<!-- 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, Close) through the user interface, CentraSite internally sends a corresponding actionId to the GWT extension.