WicketTester and ajax call from javascript

2011-11-27 Thread Sebastiaan van Erk
Hi all, I've got a page which calls wicket from javascript as described by the page: https://cwiki.apache.org/WICKET/calling-wicket-from-javascript.html That is, in my JavaScript I call a function: function callWicket() { var wcall = wicketAjaxGet('$url$' + '$args$', function() { },

Re: WicketTester and ajax call from javascript

2011-11-27 Thread Martin Grigorov
Hi, With Wicket 1.5 you can use executeUrl() to do that. p = startPage c = p.get() b = c.getBehaviorByXyz() u = b.getCallbackUrl() fullUrl = u + foo=barwicket-ajax=true executeUrl(fullUrl) On Mon, Nov 28, 2011 at 6:59 AM, Sebastiaan van Erk sebs...@sebster.com wrote: Hi all, I've got a

Re: WicketTester and ajax call from javascript

2011-11-27 Thread Sebastiaan van Erk
Hi, Thanks for your answer. Unfortunately for the moment I don't have the opportunity to upgrade to Wicket 1.5 on this project. Is there a way to achieve this using Wicket 1.4? If not, I can live with it, but it would be nice if possible. Best regards, Sebastiaan On 11/28/2011 07:35 AM,

Re: WicketTester and ajax call from javascript

2011-11-27 Thread Sebastiaan van Erk
Hi, The following (based on your answer, but then 'backported' to 1.4) seems to work: I basically copied the implementation of executeBehavior from WicketTester. public void executeBehaviorWithParameters(AbstractAjaxBehavior behavior, MapString, ? parameters) { StringBuffer url