Sun Java System Portal Server 7 2005Q4 Release Note Supplement

Event Handling Life Cycle

The event cycle begins with the response to user interaction from inside processAction() method referred to as Generation 1 events. These events are placed in the event queue by the Portlet Container and dispatched in the order they are created. The dispatching of the events continues till all the events in the event queue are dispatched to appropriate portlets. Dispatching of the events amount to calling the handleEvent() methods of the appropriate portlets. Portlets can generate events in the handleEvent() method which are referred to as Generation next events. If a portlet has subscribed to events which are generated in different generations, it will receive the events in proper order; that is, the handleEvent() method will be called with Generation i event first and upon completion of that method, handleEvent() method will be called with event from Generation i+1.