The parameters you defined in JS are regular HTTP GET parameters, so, as I
wrote earlier, you can get them out of the request. You can do that like so:
Map map =
((WebRequestCycle)RequestCycle.get()).getRequest().getParameterMap();
Maybe there's also an easier way but I'm not really into wicket's
requestcycle ... 



Pills wrote:
> 
> Thank you, I choosed your first and pretty solution, and it works fine.
> 
> But how to get the parameters in the java code? I see nothing in the class
> AjaxRequestTarget that may return the parameters of the request?
> 
> 
> Michael Sparer wrote:
>> 
>> hi, 
>> 
>> - your component has to implement IHeaderContributor, that's where the
>> response-object gets passed
>> - you add the abstractdefaultajaxbehavior to the component you'd like to
>> call from javascript. you then have to override the respond method of
>> AbstractDefaultAjaxBehavior to perform your actions and to append your
>> changes to the response
>> 
> 
> 


-----
Michael Sparer
http://talk-on-tech.blogspot.com
-- 
View this message in context: 
http://www.nabble.com/Javascript-call-to-wicket-tp14685384p14706775.html
Sent from the Wicket - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to