Implement Portlet as an Extension
Usage | Define a portlet of type "custom" in the CentraSite Business UI. |
Elements | renderPortletContent ![*](bullet.gif) String portletId ![*](bullet.gif) String contentId ![*](bullet.gif) String commaSeparatedParam executePortletAction ![*](bullet.gif) String portletId ![*](bullet.gif) String actionId ![*](bullet.gif) String contentId ![*](bullet.gif) 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: ![*](bullet.gif) create an instance of class ![*](bullet.gif) implement the method renderPortletContent (within the class instance) to render each custom portlet defined in the configuration file. ![*](bullet.gif) 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. |