You can have hidden (display: none) FormPanel with method="post". Then:
On Wednesday, March 21, 2018 at 11:48:46 AM UTC-7, Matthew McLarty wrote:
-- form.getElement().<FormElement> cast().setTarget("");
form.setAction(url);
form.submit();
That will redirect to specified url with POST.
On Wednesday, March 21, 2018 at 11:48:46 AM UTC-7, Matthew McLarty wrote:
I feel a little silly asking this since it feels like something that should be obvious.
How do I submit data to another URL, via POST (or GET if need be) without it being an ajax request? Do I need to construct a fake FormPanel and make it 1px big to submit the data to a URL? Can I use request builder and set the content-type header? The problem is that I need to browser to advance to that URL where the submission is processed but the GWT methods all seem to expect that to be an asynchronous event.
Please help?
You received this message because you are subscribed to the Google Groups "GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment