Events are broadcast by JSF components, the different phases of a Java request lifecycle, and the application, and are received by registered event listeners. JSF 1.2 provides phase events, which are broadcast before and after every phase, and application events, which are generated by the JSF components.
Phase events in JSF 2.0 are the same as in JSF 1.2. The only difference is a new method in
getPhaseListeners(). It returns a
List<PhaseListener>. JSF 1.2 provided two application events:
ActionEvent. JSF 2.0 added two behavior events:
AjaxBehaviorEvent. These add behavior to components and were discussed in Chapter 8, “Client Behaviors.” JSF 2.0 ...