×
☰ See All Chapters

JSF Events and Listeners

  • An event is a change in the state in a life cycle of an object or change in the value of user input or it can be any action.  

  • We can take advantage of the listeners which listen to these events and attach the process/functions to execute. 

  • In JSF event sources reside in UI components in client side and listeners reside in server side.  

  • JSF supports the following types of events. 

    1. Action Event: Action event get fired when user performs any action like click, mouse over, press any key on user interface. 

    2. Value Change Event: Value change event get fired when user change any input value. 

    3. Phase Event: Phase event get fired during JSF application request processing life cycle. 

 

jsf-events-and-listeners-0
 

All Chapters
Author