Hi,
the url allows parameters as any url, e.g
"http://server.com?param1=value1¶m2=value2".
If you need to post your parameters, you'll have to generate a hidden
form and submit it.
You can render the form with wicket (some WebMarkupContainers will
suffice) or just use some JavaScript for it:
http://stackoverflow.com/questions/133925/javascript-post-request-like-a-form-submit
You can call the JavaScript in the Ajax request as follows:
target.appendJavaScript(String.format("post('%s', %s);", path, params));
Have fun
Sven
On 22.07.2015 10:35, cosmindumy wrote:
Hi Sven,
Thanks for your response but I think I cannot use this option.
I need to pass to that url the form parameters.
On my onSubmit, I need to build a list of parameters and pass via a post
method to the url to be processed.
This exception does not allow a list of parameters.
Cheers,
Cosmin.
--
View this message in context:
http://apache-wicket.1842946.n4.nabble.com/how-to-send-a-request-to-an-external-url-from-wicket-tp4671642p4671644.html
Sent from the Users forum mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]