7.5. PortletMessage

This interface defines the message object that will be sent between portlets inside the same portlet application on the same page. Since it is a flag interface, it does not define any methods to be implemented. Therefore, you are free to create message objects that can store a wide variety of information. Example 7-4 illustrates a simple custom message used to carry a detail information about an entry of an agenda.

Example 7-4. Creating a custom message
import org.apache.jetspeed.portlet.PortletMessage;
public class AgendaMessage implements PortletMessage {
   private AgendaBean entry;

   public AgendaBean getEntry() {
      return entry;
   }
   public void setEntry(AgendaBean entry) {
      this.entry = entry;
   }
}

If you simply need to send a ...

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.