25.3. Broadcasting source data

Using the broadcast feature of the cooperative broker, users can send the same data to all portlets on the page with matching actions. The target cooperative portlet of a broadcast can use the declarative or programmatic approach to publish properties.

To include the broadcast menu item to the HRPortlet, proceed as follows:

  1. Open the JSP HRPortlet/Web Content/hrportlet/jsp/html/HRPortletView.jsp.

  2. In the encodeProperty tag, include the broadcast attribute so it looks as shown in Example 25-1.

    Example 25-1. The broadcast attribute enables the broadcast feature.
     <TD><P> <% if (results.getColumnName(col).equalsIgnoreCase("DEPT_NO")) { %> <C2A:encodeProperty name="DEPT_NOParam" namespace="http://www.ibm.com/wps/c2a/examples/hrdetails" ...

Get IBM Rational Application Developer V6 Portlet Application Development and Portal Tools now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.