[
https://issues.apache.org/jira/browse/WICKET-828?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12519338
]
Eelco Hillenius commented on WICKET-828:
----------------------------------------
See
http://www.nabble.com/How-to-use-form-method%3D%22get%22--tf4229581.html#a12032581
> Using form method=get does not work
> -----------------------------------
>
> Key: WICKET-828
> URL: https://issues.apache.org/jira/browse/WICKET-828
> Project: Wicket
> Issue Type: Bug
> Affects Versions: 1.2.6, 1.3.0-beta2
> Environment: All
> Reporter: Johan Haleby
>
> I'm trying to use form method="get" instead of post. In wicket 1.3.0-beta2 I
> override the getMethod() in Form to return METHOD_GET instead of the default
> METHOD_POST. In wicket 1.2.6 I do like this:
> Form form = new Form("form") {
> @Override
> protected void onComponentTag(ComponentTag tag) {
> super.onComponentTag(tag);
> tag.put("method", "get");
> }
> };
> Both of these options seems to work as far as rendering the html page is
> concerned but you cannot submit anything. But when submitting a request all
> that's happening is that the navigation bar displays the URL in the form of
> e.g.
> http://localhost:8080/wickettest/app/?form0_hf_0=&firstName=johan&lastName=haleby&button=Submit+Query
> . I.e. all wicket component navigation info seems to be lost and wicket
> cannot determine the IFormListener and instead
> defaults to the HomePage.
> Also one thing that may be addressed is that if you have declared a form in
> your html as e.g.
> <form wicket:id="form" method="get">
> ..
> </form>
> the method should not automatically be transformed to post. Or perhaps there
> is a reason for doing this that I'm not aware of.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.