Inserting Client Side Click-to-Action code
Portlets can be programmed to access and display data from a variety of sources.
You can insert Client Side Click-to-Action code in IBM® API portlets as well as in JSR portlets.
Note: This feature is available only when targeting a IBM WebSphere® Portal V6.1 server.
Inserting Output Property (sending data)
To insert Client-Side Click-to-Action Output property in a portlet, do the following:
- Double-click a JSP file to open it in Page Designer.
- Select the Portlet drawer in the Palette view.
- Drag and drop the
Client side Click-to-Action Output Property object from the Palette view onto the page. Alternatively select
Insert | Portlet | Client Side Click-to-Action Output Property from the menu.
- In the
Insert Client side Click-to-Action Output Property dialog box, specify the Data Type URI.
- Specify the Output Value Attribute.
- Click Finish. To see the code that was inserted, click on the Source tab. In the source tab you can also edit the anchor point for the C2A menu. The anchor point is the C2A hover UI string.
Inserting Input Property (receiving data)
To insert Client-Side Click-to-Action Input property in a portlet, do the following:
- Double-click a JSP file to open it in Page Designer.
- Select the Portlet drawer in the Palette view.
- Drag and drop the
Client side Click-to-Action Input Property object from the Palette view onto the page. Alternatively select
Insert | Portlet | Client Side Click-to-Action Input Property from the menu.
- In the
Insert Client side Click-to-Action Input Property dialog box, select the Data Type URI from the drop-down, this should match the source Data Type URI, and then click Next.
- Enter the Action Value and the Action Label, and then Click Finish. To see the code that was inserted, click on the Source tab.
Inserting Menu Header
A header is displayed along the top of the menu that the click-to-action source may populate with markup. It is generally used to provide descriptive information about the click-to-action source menu. To specify
Client-side Click-to-Action Menu Header:
- Double-click a JSP file to open it in Page Designer.
- Select the Portlet drawer in the Palette view.
- Drag and drop the
Client-side Click-to-Action Menu Header object from the Palette view onto the page. Alternatively, from the menu, select
Insert | Portlet options | Client-side Click-to-Action Menu Header.
- In the
Insert Menu header dialog box, specify the header contents.
- Click Finish.
Related concepts