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, but what I actually
want is to validate the form and handle the fields
and afterwards to send the request to the payment server.
something like
protected void onSubmit(final AjaxRequestTarget target, final Form<?> form)
{
vvalidate fields
if (fields are valid) {
buildRequestParameter;
sendPostRequest
redirect client to the payment server.
}
}
What is the recomended way to do this?
Thanks.
--
View this message in context:
http://apache-wicket.1842946.n4.nabble.com/how-to-send-a-request-to-an-external-url-from-wicket-tp4671642.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]