Enabling existing portlets for cooperation
You can enable your existing portlets for cooperation. Rational Developer makes it easier to develop the various parts of the run-time artifact to enable Click-to-Action portlets. The tooling provides support in the following areas:
- Declaring a portlet to be either a source portlet or a target portlet
- Inserting and defining data to be published in the source portlet's JSP page (<c2a:encodeProperty>)
- Generating the data model and operations specification document (WSDL file)
- Consuming the data in the target portlet
- Binding portal actions to the 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 declare data to publish to a JSP file: Inserting Click-to-Action encodeProperty To edit the data to be published to a JSP file: Editing Click-to-Action encodeProperty To include an output property in a JSP file: Inserting Click-to-Action encodeProperties To edit an output properties in a JSP file: Editing Click-to-Action encodeProperties - 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 Compliance.
- Set the compliance levels to Ignore compliance, and then click Apply and OK.
Related concepts
Developing cooperative portlets