You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Eelco Hillenius (JIRA)" <ji...@apache.org> on 2007/08/12 22:57:43 UTC

[jira] Assigned: (WICKET-828) Using form method=get does not work

     [ https://issues.apache.org/jira/browse/WICKET-828?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Eelco Hillenius reassigned WICKET-828:
--------------------------------------

    Assignee: Eelco Hillenius

> 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
>            Assignee: Eelco Hillenius
>
> 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.