You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Johan Haleby (JIRA)" <ji...@apache.org> on 2007/08/08 10:16:59 UTC

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

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.3.0-beta2, 1.2.6
         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.


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

Posted by "Eelco Hillenius (JIRA)" <ji...@apache.org>.
     [ 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.


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

Posted by "Eelco Hillenius (JIRA)" <ji...@apache.org>.
    [ 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.


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

Posted by "Eelco Hillenius (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/WICKET-828?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Eelco Hillenius resolved WICKET-828.
------------------------------------

       Resolution: Fixed
    Fix Version/s: 1.3.0-beta3
                   1.2.7

> 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
>             Fix For: 1.2.7, 1.3.0-beta3
>
>
> 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.