webtier@glassfish.java.net

Re: f:ajax and javascript events in JSF 2.0

From: <webtier_at_javadesktop.org>
Date: Tue, 02 Mar 2010 15:48:38 PST

Not sure you can bind events to newly added fields (jQuery doesn't have any DOM tree event handlers that I know of) but the jQuery code you trigger from the f:ajax event attribute could certainly access any new named (e.g. $("#param")) hidden field that is passed from the server and added to the document. You could also specify the id in the function call associated with the specific instance of the ajax tag in the document.
[Message sent by forum member 'tacitust' (tacitus_at_yahoo.com)]

http://forums.java.net/jive/thread.jspa?messageID=389720