Event Handling

 

Event Handling

 

+

Search Tips   |   Advanced Search

 

Event handling is done in two phases...

  • event phase
  • render phase

During the event phase, the property broker delivers notifications to cooperative portlets, and the cooperative portlets can notify the property broker of property value changes. An action may be delivered on one portlet as the result of a user clicking on an action link generated by the portlet in its markup. If cooperative portlets are used, this may result in other actions being triggered on other portlets.

At any point during the event phase, a portlet may publish the value of an output property to the property broker. The portlet may provide a value at any time during the event phase. The property broker determines what needs to be done with the values.

If wires exist for this property, the property broker will deliver the property value to the actions specified by the target end of the wires. This process may continue recursively; the property broker detects loops and breaks them. The property broker guarantees the completion of all property value notifications to target portlets by the end of the event phase.

The event phase is followed by the render phase. During the render phase, the portlet runtime renders the markup that each portlet produces. Each portlet is asked to return a markup, which is then aggregated in a single page. The markup may embed action links which can be used to invoke actions. The page is then returned to the client (such as a browser).

 

Related information

  • Cooperative portlet reference