O'Reilly logo

IBM Rational Application Developer V6 Portlet Application Development and Portal Tools by Ryan Wilson, Gianfranco Rutigliano, George Kroner, Belen Gonzalez, Karla Galvan, Cristiano Cesario, Juan R. Rodriguez

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required