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