You can use a CryptoMapper or use setResponsePage(new NextPage( txtValue ) 
(NextPage will be stateful)

François

Le 28 janv. 2013 à 18:37, heikki <tropic...@gmail.com> a écrit :

> hello,
> 
> I have a form on my page, which when submitted goes the next page, but all
> the form's fields appear as URL parameters in the resulting page. I'm using
> Wicket 6.5.0.
> 
> My code is like
> 
> StatelessForm<?> form = new StatelessForm<Void>("myForm") {
>   protected void onSubmit() {
>      final String txtValue = txt.getModelObject();
>      PageParameters pageParameters = new PageParameters();
>      pageParameters.add("txt", txtValue);
>      setResponsePage(NextPage.class, pageParameters);
> }
> 
> In the markup the form is declared like
> 
> <form wicket:id="myForm" method="post">
>     <input wicket:id="txt" type="text" size="20" />
>    <input type="submit" value="submit" />
> </form>
> 
> After submitting the result is the next page, but with a URL like
> mywebapp/mountedpagepath?txt="userprovided". I don't want to have the posted
> form fields appended to the URL. How can I do that ?
> 
> Kind regards
> Heikki Doeleman
> 
> 
> 
> --
> View this message in context: 
> http://apache-wicket.1842946.n4.nabble.com/How-to-prevent-form-input-appended-as-URL-parameters-tp4655843.html
> Sent from the Users forum mailing list archive at Nabble.com.
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org

Reply via email to