wicket-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cosmindumy <cosmind...@yahoo.com>
Subject how to send a request to an external url from wicket?
Date Tue, 21 Jul 2015 15:09:19 GMT
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: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Mime
View raw message