forgot to add the concatenation result has to be passed as argument to wicketajaxget as you already know..
On Fri, Mar 19, 2010 at 9:03 PM, vineet semwal <vineetsemwal1...@gmail.com>wrote: > Hi, > take a look at > http://cwiki.apache.org/WICKET/calling-wicket-from-javascript.html > > following is what you need to do .. > > you can concatenate the value you want to return as paramter in > callbackurl,we will read this back as request > parameter from java. > > it should look like callbackurl+"&"+component markupid+"="+args; > > then in your respond method you can easily read request parameter from url > . > String paramFoo = RequestCycle.get().getRequest().getParameter("component > markupid"); > > > > On Fri, Mar 19, 2010 at 7:51 PM, Stefan Lindner <lind...@visionet.de>wrote: > >> If I place a call to wicketAjaxGet(...) into a eg.g onclick attribute >> with the help of an AjaxBehavior, the method respond(final >> AjaxRequestTarget target) is called on the Java side. >> >> Is it possible to build a call to wicketAjaxGet like >> >> var result = wicketAjaxGet(...); >> >> and provid the result value in the respond method on the Java side? >> >> Does anobody know the trick? >> >> Stefan >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >> For additional commands, e-mail: users-h...@wicket.apache.org >> >> > > > -- > regards, > Vineet Semwal > -- regards, Vineet Semwal