concept portlet event in category java

This is an excerpt from Manning's book Portlets in Action.
Portlets don’t have an event URL type for sending event requests. In chapter 11, we’ll discuss portlet events in detail.
Portlet 2.0 introduced the concept of portlet events to allow a loosely coupled approach to inter-portlet communication that is tightly integrated with the portlet lifecycle. You can think of portlet events as being like emails. You send email using your favorite email client, and the delivery is taken care of by a mail server. In the case of portlet events, the portlet sends the events, and the portlet container is responsible for making the event available to the receiver portlets.
In this section, we’ll take an in-depth look at how portlet events are used for inter-portlet communication. You’ll see how portlets can communicate with each other using portlet events, using the Book Catalog and Recently Added Book portlets as examples. Toward the end of this section, we’ll also look at how Spring Portlet MVC controllers support the processing of portlet events.
When you use public render parameters or the portlet session for inter-portlet communication, it’s your responsibility to retrieve the communicated information in the receiver portlet’s render method (or in an appropriate lifecycle method) and to process the communicated information. When you use portlet events, the sender portlet uses events to communicate the information to the receiver portlets. The portlet container acts as the broker, delivering the events to the portlets that define an interest in receiving the event.
Portlet events offer a sophisticated form of event-driven portlet communication that’s coupled with the portlet lifecycle.
These are the advantages of using portlet events for communication: