Hi Michael

Why not just have a page with a hidden form, then fill the values via javascript and submit the form again via javascript?

-Nino

Michael Sparer wrote:
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

--
Nino Martinez Wael
Java Specialist @ Jayway DK
http://www.jayway.dk
+45 2936 7684


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

Reply via email to