Portlet events
Some portlets only display static content in independent windows. To allow users to interact with portlets and to allow portlets to interact with each other, portlet events are used. Portlet events contain information to which a portlet might need to respond. For example, when a user clicks a link or button, this generates an action event. To receive notification of a given event, the portlet must also have the appropriate event listener implemented within the portlet class. There are three commonly used types of portlet events:
| Action-Generated when an HTTP request is received by the portlet that is associated with an action, such as when a user clicks a link.
|
| Message-Generated when one portlet within a portlet application sends a message to another portlet.
|
| Window-Generated when the user changes the state of the portlet window.
|