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 O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.