Sun Java Solaris Communities My SDN Account Join SDN
 
Web Developer Resource Center: Samples
Project Dynamic Faces fireAjaxTransaction Demo
Web Resource Center: Samples

Roger Kitain
Roger is the JavaServer Faces co-specification lead. Roger has extensively been involved with server side web technologies and products since 1997. He started working on JavaServer Faces in 2001, as a member of the reference implementation team. He has experience with Servlet, JSP technologies, and most recently he has been involved with different rendering technologies for JSF.

 

Sample, Applications, Components & Widgets

Project Dynamic Faces fireAjaxTransaction Demo - Click to Run It!Project Dynamic Faces fireAjaxTransaction Demo
 
This application demonstrates the use of the Dynamic Faces "fireAjaxTransaction" JavaScript method call. The Dynafaces.fireAjaxTransaction method allows you to control what components get "executed" or "rendered" through the JSF lifecycle. The control area on the left consists of a group of 8 buttons (ajax1 - ajax8). To the right is an actual JSF view of components - some panelGrid components containing some button components. The color key at the top, illustrates the lifecycle phase the set of components has gone through.
 
So, initially, you will see the set of component displayed with a green border - signifying that they have been initially rendered. Pressing any one of the 8 buttons (ajax1 - ajax8) will cause a Dynafaces.fireAjaxTransaction method to be called with predetermined options specifying what components will be affected, and what lifecycle phase. After pressing one of the buttons you should see two things: (1) the color of the view of components should change to reflect the result of the fireAjaxTransaction call; or (2) there is an "Options" area at the bottom of the ui that should display the options that were used in the Dynafaces.fireAjaxTransaction call. At the bottom of the ui there is a "reset" button. This needs to be pressed before each ajax1-ajax8 button press.
 
The Project Dynamic Faces fireAjaxTransaction Demo uses the following technologies:
  • JSF
  • Ajax
    Run it!  |  Feedback
 
Project Dynamic Faces fireAjaxTransaction Demo by Roger Kitain