Adding cooperative source trigger action
Dropping a cooperative source trigger action onto a JSP page will automatically add the UI controls (either a link or a submit button) and action code to trigger a property transfer between portlets. This action can be dropped onto other elements in the JSP page and it will bind to the object's value.
To use the
Cooperative source trigger wizard to add a cooperative source trigger action, follow these steps:
- From the Palette, expand the Portlet drawer. Drag and drop the Cooperative source trigger onto your JSP page. Or you can click
Insert | Portlet | Cooperative Source Trigger This will bring up the wizard.
- In the
Insert Cooperative Source Trigger panel, fill in the following fields:
Action value field - select an existing source action that you have already declared, or click
New Source button and the
Enable the Portlet to Send Data wizard will open.
Property Name - select an available properties that you wan to transfer.
Value to send field - enter the value you want to send when the above action takes place, this will be either a string or complex type. If this is a faces portlet you can browse to the associated value.
- Select either a link or button to generate a UI on the JSP page.
- Click Finish
When you are adding a cooperative source trigger action:
- For Faces portlets: a Command-Hyperlink or a Command-Button is added to the pag and a faces action will be created to place the data to be transferred into the proper scope.
- For Basic portlets: a link or submit button is added to the page. The portlet action in the portlet class is updated to place the data to be transferred into the proper scope.
Related concepts
Developing cooperative portlets
Related tasks
Enabling existing portlets for cooperation
Enabling cooperative sources with a Faces action
Enabling cooperative targets without a Faces action