This is strange.
Can you verify with Dev Tools/Firebug that POST is used for the submittion ?


On Mon, Jan 28, 2013 at 7:37 PM, heikki <tropic...@gmail.com> wrote:

> 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
>
>


-- 
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com <http://jweekend.com/>

Reply via email to