With this example I could register a select list and a button to do Ajax transactions with (in the jsp) only the following two tags:
<ajax:htmlContent baseUrl="formservlet" source="catalogId" target="validationMessage"So, in this example, you had to define two servlets, one called formservlet and one called formupdateservlet. The ajax:htmlContent tag above made it so that if you changed the selected value of a select list with the id of catalogId, it would "doGet" on formservlet with the request parameter which has that selected value. The value of the element with the id of "validationMessage" (as specified in the ajax:htmlContent tag above) is set to the text of the response of this servlet. That is a lot of meaning to pack into a little tag...but that "meaning" is just what we want, time and time again...isn't it...with AJAX.
<ajax:updateField action="updateForm" baseUrl="formupdateservlet"
I would like to explore this a bit more (since this example does not begin to cover AjaxTags functionality fully) and see how it performs when incorporated into JSF pages.