Home Freemagazine Issue8 JSF Application

Related Tutorials


 
 

Share on Google+Share on Google+

JSF Application

Advertisement
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:

http://www.javajazzup.com/issue8/page54.shtml

Advertisement

If you enjoyed this post then why not add us on Google+? Add us to your Circles



Liked it!  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.

Posted on: April 3, 2006

Related Tutorials

Discuss: JSF Application  

Post your Comment


Your Name (*) :
Your Email :
Subject (*):
Your Comment (*):
  Reload Image
 
 
Comments:0
DMCA.com