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:

  1. 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.

  2. In the

    Insert Cooperative Source Trigger panel, fill in the following fields:

    1. 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.

    2. Property Name - select an available properties that you wan to transfer.

    3. 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.

  3. Select either a link or button to generate a UI on the JSP page.

  4. Click Finish

When you are adding a cooperative source trigger action:

 

Related concepts

Developing cooperative portlets

 

Related tasks

Enabling existing portlets for cooperation

Enabling cooperative sources with a Faces action

Enabling cooperative targets

Enabling cooperative targets without a Faces action