First page Back Continue Last page Graphics

Using the Contextual Event Framework to Coordinate Page Regions


Using Contextual Events

There are several pieces that define a contextual event:

1. A container page that contains the regions to be coordinated

2. A producer that invokes a method to raise the event and provide a payload (information needed by the event)

3. A consumer that is the target of the event

4. A handler method that is bound either to the consumer page fragment or to the page containing the regions

5. An event mapping on the container page definition that specifies:

The producer region and payload method

The event name

The consumer and event handler

The parameter (payload) to pass to the event

The steps required to set up a contextual event are described in the next few slides.