hi all, in the process of upgrading to wicket 6, I have to do some wicket ajax calls from custom javascript callbacks. The AbstractDefaultAjaxBehavior seems to provide a bunch of tools to help me out. But I cannot make sense of the javadoc (& implementation) of #getCallbackFunction:
* Generates a javascript function that can take parameters and performs an AJAX call which * includes these parameters. The generated code looks like this: * * <pre> * function(param1, param2) { * var attrs = attrsJson; * var params = {'param1': param1, 'param2': param2}; * attrs.ep = jQuery.extend(attrs.ep, params); * Wicket.Ajax.ajax(attrs); * } * </pre> But AFAIK the last line of the generated function Wicket.Ajax.ajax(attrs) does not do an ajax call. It just uses jQuery to register event listeners. So have I missed something, or is this a bug? thanks, Frank -- Amsterdam - Oosteinde 11, 1017 WT Amsterdam Boston - 1 Broadway, Cambridge, MA 02142 US +1 877 414 4776 (toll free) Europe +31(0)20 522 4466 www.onehippo.com