Re: wicketAjaxGet callback?
Hi. I've read this, but it has the same hacky solution, just from different perspective. I.e., var tip=document.getElementById('mooTipContent').innerHTML; you still need to have some global variable to store result. In the end, you need to generate some unique identifier and store either callback or result to avoid race conditions. nino martinez wael wrote: http://blog.jayway.com/2008/09/26/wicket-javascript-internals-dissected/ and also check the mootips on wicketstuff.. 2009/10/21 Vytautas Čivilis vytautas.civi...@gmail.com mailto:vytautas.civi...@gmail.com Hi. Is there any way wicketAjaxGet can call the provided callback function with parameters from the backend? Now, as far as I can see, there are only options to: 1. update component using AjaxRequestTarget 2. execute javascript using AjaxRequestTarget What I need is to call the particular function (not the global one), with parameters from backend. The only possible way to achieve that (in my view), is to use 2nd option combined with storing the callback function in some global map. Then I would be able to call the correct callback function. Is there any easier (not hacky) way? Vytautas - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org mailto:users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org mailto:users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
wicketAjaxGet callback?
Hi. Is there any way wicketAjaxGet can call the provided callback function with parameters from the backend? Now, as far as I can see, there are only options to: 1. update component using AjaxRequestTarget 2. execute javascript using AjaxRequestTarget What I need is to call the particular function (not the global one), with parameters from backend. The only possible way to achieve that (in my view), is to use 2nd option combined with storing the callback function in some global map. Then I would be able to call the correct callback function. Is there any easier (not hacky) way? Vytautas - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: wicketAjaxGet callback?
http://blog.jayway.com/2008/09/26/wicket-javascript-internals-dissected/ and also check the mootips on wicketstuff.. 2009/10/21 Vytautas Čivilis vytautas.civi...@gmail.com Hi. Is there any way wicketAjaxGet can call the provided callback function with parameters from the backend? Now, as far as I can see, there are only options to: 1. update component using AjaxRequestTarget 2. execute javascript using AjaxRequestTarget What I need is to call the particular function (not the global one), with parameters from backend. The only possible way to achieve that (in my view), is to use 2nd option combined with storing the callback function in some global map. Then I would be able to call the correct callback function. Is there any easier (not hacky) way? Vytautas - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org