Enabling existing portlets for cooperation
You can enable your existing portlets for cooperation. Rational® tools make it easier to develop the various parts of the runtime artifact to enable cooperative portlets, including Click-to-Action menus on JSP pages. The tooling provides support in the following areas:
- Declaring a portlet to be either a source portlet or a target portlet
- Defining data to be published as an output property or received as an input property in the source portlet
- Adding a Click-to-Action menu to the source portlet's JSP page (<c2a:encodeProperty>)
- Adding a trigger action to a source portlet for Basic and Faces portlets
- Generating the data model and operations specification document (WSDL file)
- Consuming the data in the target portlet
- Binding portal actions to the property broker operations
To enable cooperation for existing portlets:
- For a source portlet, see the following topics:
- To convert a portlet to a source portlet: Enabling cooperative sources
- To add a Click-to-Action menu to a JSP file to publish an output property: Inserting Click-to-Action encodeProperty
- To configure the Click-to-Action menu in a JSP file: Editing Click-to-Action encodeProperty
- To add a Click-to-Action menu to a JSP file to publish multiple output properties: Inserting Click-to-Action encodeProperties
- To configure a Click-to-Action menu in a JSP file to publish multiple output properties: Editing Click-to-Action encodeProperties
- To insert a cooperative source trigger: Adding cooperative source trigger action
- For a target portlet, see the following topic:
- To convert a portlet to a target portlet: Enabling cooperative targets
Note: WS-I compliance warning messages will be displayed in the Problems view for Click-to-Action-enabled portlets. You can ignore them in the Click-to-Action WSDL resources. Alternatively, to prevent these warning messages from being displayed, you can change the compliance level on the
WS-I compliance preferences:
- Select
Window | Preferences | Workbench | Capabilities.
- Expand
Web Service Developer, and ensure that
Web Services Development is selected.
- Click
Apply and then OK.
- Select
Window | Preferences | Web Services | WS-I BSP Compliance.
- Set the compliance levels to Ignore compliance, and then click
Apply and OK.
Related concepts
Developing cooperative portlets
Related reference
Faces direct portlet messaging