|
|
Super-Charge JSF AJAX Data Fetch
|
04/20/2006, By: Jonas Jacobi and John Fallows
|
Jonas Jacobi & John Fallows, the writers of the Ajax book Pro JSF and Ajax: Building Rich Internet Components has written a new article on fetching data using AJAX with JavaServer Faces (JSF) components.
They earlier published an article on "JavaServer Faces and AJAX for Google Fans", that explains how to Ajax-enable data fetch for your JSF components using Mabon, and how you can package external resources needed for your JSF component into the same archive as your Java classes leveraging the Weblets project.
In present article they are discussing the need to fetch data using AJAX with JavaServer Faces (JSF) components. The most common use cases for fetching data with AJAX are to populate dropdown lists and add type-ahead functionality in text fields. In contrast to using AJAX postbacks for events, fetching data shouldn't affect the surrounding components on the page. And if fetching data isn't affecting other parts of the DOM tree, then you don't have to go through the full JSF lifecycle just to get the data, right?
This article also introduces for the first time a new Open Source project called Mabon hosted on the Java.net Web site. Mabon stands for Managed Bean Object Notation and its goal is to provide component writers of AJAX-enabled JSF components to access JSF managed beans outside the scope of the standard JSF lifecycle by using a JSON-syntax communication channel.
In essence, Mabon provides application developers with a standard and easy way to provide data to AJAX-enabled components using the managed bean facility provided by the JSF specification.
Read Full Article...
|
Rate this Ajax Articles
Rating: 10.0 out of 1 vote cast
| |
|
|
|
|
|
|
|
|
|
|
|
|