Share on Google+Share on Google+

JSF Application

Event Handling is one of the important concepts in JSF.

JSF Application



  1. Immediate Event Handling Example
    Event Handling is one of the important concepts in JSF. This section provides a simple JSF application, which explains how to implement ?immediate? event handling in JSF. Immediate event handling is useful in cases where you do not need to validate an entire page to process a user input. Normally, the event handler for components executes in the invoke application phase. But when the ?immediate? attribute is set to ?true? for the component then event executes in the apply request values phase and forces JSF to skip directly to the render response phase leaving all intermediate phases of the life cycle. In this case the whole form is not validated before event handler is invoked and displays response directly.

    This application takes both types of events i.e. Value Change Event and Action Event. When the user changes its choice from the list of song, a value change event occurs which displays detailed information of the selected song and when it clicks a radio button to select a category of books, a value change listener event is fired for this component which displays subcategory of the selected category i.e. displays a list of books of the selected category.



Read more at:



Posted on: April 3, 2006 If you enjoyed this post then why not add us on Google+? Add us to your Circles

Share this Tutorial Follow us on Twitter, or add us on Facebook or Google Plus to keep you updated with the recent trends of Java and other open source platforms.

Discuss: JSF Application  

Post your Comment

Your Name (*) :
Your Email :
Subject (*):
Your Comment (*):
  Reload Image