O'Reilly logo

JavaServer® Faces 2.0: Essential Guide for Developers by Deepak Vohra

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

CHAPTER 11EVENT HANDLING AND EXCEPTION HANDLING

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 UIViewRoot: getPhaseListeners(). It returns a List<PhaseListener>. JSF 1.2 provided two application events: ValueChangeEvent and ActionEvent. JSF 2.0 added two behavior events: BehaviorEvent and AjaxBehaviorEvent. These add behavior to components and were discussed in Chapter 8, “Client Behaviors.” JSF 2.0 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required