In this section, you will execute the following tasks to enable a JSR 168 portlet as a source cooperative portlet using the declarative approach:
Import the portlet if it is not in your workspace.
Declare exchange capabilities using WSDL.
Update the portlet.xml file to point to the WSDL file.
Update the portlet as follows:
- In the init() method add a reference to the property broker service
- In the processAction() method, send the output properties
- In the doView() method, check if the wire is active.
Update the JSP for View mode to create dynamic links.
You will enable the HRPortlet168 portlet to act as a source cooperative portlet. Follow these steps to import this portlet ...