You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Nick Pratt <nb...@gmail.com> on 2013/12/20 20:08:44 UTC
Form submit without URL modification
Is it possible to create a form submission that hits a specific URL and
doesn't modify the original URL displayed in the browser.
e.g. I have a single simple Page, that has a StatelessForm on it. I hit
this via http://localhost:8080/
When I hit the form submit button, the URL in the browser changes to:
http://localhost:8080//?-1.IFormSubmitListener-form
Im trying to create a button that can always be clicked regardless of
Wicket session expiration and that doesnt modify the URL - is this possible?
N
Re: Form submit without URL modification
Posted by Per Newgro <pe...@gmx.ch>.
Hi Nick,
we do a setResponsePage(this.getPageClass(), this getPageParameters())
at the end of the submit.
Then the url is the same as before.
Hth
Per
Am 20.12.2013 20:08, schrieb Nick Pratt:
> Is it possible to create a form submission that hits a specific URL and
> doesn't modify the original URL displayed in the browser.
>
> e.g. I have a single simple Page, that has a StatelessForm on it. I hit
> this via http://localhost:8080/
> When I hit the form submit button, the URL in the browser changes to:
> http://localhost:8080//?-1.IFormSubmitListener-form
>
> Im trying to create a button that can always be clicked regardless of
> Wicket session expiration and that doesnt modify the URL - is this possible?
>
> N
>
---
Diese E-Mail ist frei von Viren und Malware, denn der avast! Antivirus Schutz ist aktiv.
http://www.avast.com
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org