Re: how to send a request to an external url from wicket?

2015-07-22 Thread cosmindumy
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.

Re: how to send a request to an external url from wicket?

2015-07-22 Thread Sven Meier
Hi, the url allows parameters as any url, e.g http://server.com?param1=value1param2=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

Re: how to send a request to an external url from wicket?

2015-07-22 Thread cosmindumy
Ya, I need to submit the form with post method. This answer helped me. I will try it. Thanks a lot, Cosmin. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/how-to-send-a-request-to-an-external-url-from-wicket-tp4671642p4671646.html Sent from the Users forum mailing

how to send a request to an external url from wicket?

2015-07-21 Thread cosmindumy
Hello, My form needs to make the post request to an external URL. Basically is about sending a request to a payment server. I know that my form needs to override the action value, but what I actually want is to validate the form and handle the fields and afterwards to send the request to the

Re: how to send a request to an external url from wicket?

2015-07-21 Thread Sven Meier
Hi, throw a RedirectToUrlException in your #onSubmit(). Have fun| Sven | On 21.07.2015 17:09, cosmindumy wrote: Hello, My form needs to make the post request to an external URL. Basically is about sending a request to a payment server. I know that my form needs to override the action value,