Implementing an Event Listener
As explained in Event and Listener Model (page 652), JavaServer Faces technology supports action events and value-change events.
Action events occur when the user activates a component that implements ActionSource. These events are represented by the javax.faces.event.ActionEvent class.
Value-change events occur when the user changes the value of a UIInput component or a component whose class extends UIInput. These events are represented by the javax.faces.event.ValueChangeEvent class.
One way to handle these events is to implement the appropriate listener classes. Listener classes that handle the action events in an application must implement javax.faces.event.ActionListener. Similarly, listeners that handle the ...
Get The J2EE™ Tutorial Second Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.