Portlet Factory, Version 6.1.2
Enabling Click-to-Action
When building IBM® WebSphere® Application Server portlets, you can enable a feature called Click-to-Action (C2A) that provides automatic front-end integration of portlets.
Click-to-Action lets users transfer data from a source portlet to one or more target portlets. The target portlet will react to the transferred data, causing information on its page to be refreshed.
One advantage of using Click-to-Action portlets is that the C2A-enabled menu on the source portlet will show only actions that other portlets on the page are listening for. If you do not know which portlets will be on a portal page, you may not want to create a link to explicitly call an action in case the portlet receiving that action is not available. In this case, using a Click-to-Action portlet is desirable because it will look at the portal page and see what actions portlets are listening for, and show only menu items for the relevant actions.
General procedure for enabling C2A events
The general procedure for creating models to be the source and target for Click-to-Action events is as follows:
- Create a C2A target model.
- Create a C2A source model.
- Generate a deployment WAR and deploy it on the IBM WebSphere Portal.
- View the C2A portlet.
Parent topic: How do I use Click-to-Action portlets?
- About creating a C2A source model
A source portlet uses a C2A event to send data to a target portlet.
- About creating a C2A target model
A target portlet accepts data from a source portlet by receiving a C2A event from the source portlet.
- Viewing the C2A portlet
Use the WebSphere Application Server Work with Pages tool to add the source and target C2A models to a new or existing page.
- Event Handler builder
The Event Handler builder lets you specify an action to perform when a specified event occurs.
Library | Support |