I've placed my slides for my JSF 2 and Ajax talk up on slideshare.
Check 'em out, and ask questions in the comments.
JSF 2.0 makes ajax pretty easy - but it can't hide everything from you... It's tempting to just add a few ajax tags into your page, and not worry too much about interactions - here's one example of a problem you may run into.
Let's say you've got a page with an input text, and a command button - like this:
Enabling this is as simple as putting the below into your web.xml:
Today we're going to talk about two features of JSF 2.0's f:ajax tag: the event attribute and the listener attribute.
The use of both of these is really, really simple - so I'll just briefly cover the basics, and then launch directly into the sample code.
The "event" attribute of the ajax tag indicates which event to use to trigger the ajax request.
I'll be speaking at the Herbstcampus next week, on topics such as JSF 2, JSF and Ajax, and Comet.
If you're in Nuremburg next week, or just want to be, the conference looks pretty cool, come join us.
The Open Ajax Alliance is a standards organization with the mission of ensuring interoperability within Web based Ajaxified applications.
A few weeks ago, I blogged about ways to execute scripts on the client which you were writing out from the server via Ajax. By popular demand, the latest build of Mojarra now allows execution of inline scripts.
A nice feature of Facelets is the ui:repeat tag, which iterates over a supplied list of values to do a full list on your page. One problem: it'll add an index to the generated id's, which can make using it with Ajax a bit of a drag. But if you're just using the f:ajax tag, that index is detected automatically, making ajaxifying the tag relatively easy.