Quantcast
Channel: Apache Timeline
Viewing all articles
Browse latest Browse all 5648

ajax call event callbacks in Wicket 6.0, just question

$
0
0
Hi guys,

I just want to ask about the registering of AJAX "onSuccess" and "onFail"
javascript callbacks in Wicket 6.0.

*In Wicket 1.5.8 we used in JavaScript*:

*Now in Wicket 6.0 when I change it to :*

Server's ajax behaviour is being invoked correctly as well, but Ajax
callbacks (2nd or 3th parameter of Wicket.Ajax.get) *are never called*.

Well, I was debugging wicket-ajax-jquery.js and it seems now that in Wicket
6.0 the only way of registering the ajaxCallbacks is using the global topics

It seems that we can't register ajax callback for just *one particular* ajax
call in JavaScript. We need to do it globally like:

Which isn't very nice solution...IMHO. Or do we have an opportunity to
register ajax callback for JUST one particular call of Wicket.Ajax.get ?

thanks a lot in advance for clarification.

best regards

Tomas

Viewing all articles
Browse latest Browse all 5648

Trending Articles