7.6. Sample scenario

Message events are a way for portlets to communicate with each other. This is accomplished through the familiar event-listener model. Portlets that need to listen for message events must implement a MessageListener interface, and portlets that need to send message events do so within the handling of their own Action Events, as you will see in this sample scenario. Message events can be sent to named portlets or broadcast to all portlets on the same page. All events are handled within the page’s event-processing phase, after which comes the content generation phase.

For this sample scenario, the action event sample portlet application (see Chapter 6, “IBM Portlet API portlet development” on page 203) will be modified to include ...

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.