You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Joshua Lim (JIRA)" <ji...@apache.org> on 2007/06/29 03:24:04 UTC

[jira] Created: (WICKET-710) Radio/Check/Box cleared on validation error

Radio/Check/Box cleared on validation error
-------------------------------------------

                 Key: WICKET-710
                 URL: https://issues.apache.org/jira/browse/WICKET-710
             Project: Wicket
          Issue Type: Bug
          Components: wicket
    Affects Versions: 1.3.0-beta2, 1.3.0-beta1, 1.2.6
            Reporter: Joshua Lim


I am encountering a behaviour on 1.2.6 and 1.3 trunk. Using the FormInput wicket-example

When I clear the "String" TextField (which is a RequiredTextField) to force an "error" on the form , my values on the
RadioGroup and CheckGroup seems to be cleared as well... This causes the user to have to repeat answering these.


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Resolved: (WICKET-710) Radio/Check/Box cleared on validation error

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

Jean-Baptiste Quenot resolved WICKET-710.
-----------------------------------------

    Resolution: Fixed
      Assignee: Johan Compagner

Done in r551834

> Radio/Check/Box cleared on validation error
> -------------------------------------------
>
>                 Key: WICKET-710
>                 URL: https://issues.apache.org/jira/browse/WICKET-710
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket-examples
>    Affects Versions: 1.2.6, 1.3.0-beta1, 1.3.0-beta2
>            Reporter: Joshua Lim
>            Assignee: Johan Compagner
>             Fix For: 1.3.0-beta3
>
>
> I am encountering a behaviour on 1.2.6 and 1.3 trunk. Using the FormInput wicket-example
> When I clear the "String" TextField (which is a RequiredTextField) to force an "error" on the form , my values on the
> RadioGroup and CheckGroup seems to be cleared as well... This causes the user to have to repeat answering these.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (WICKET-710) Radio/Check/Box cleared on validation error

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

Jean-Baptiste Quenot updated WICKET-710:
----------------------------------------

      Component/s:     (was: wicket)
                   wicket-examples
    Fix Version/s: 1.3.0-beta3

> Radio/Check/Box cleared on validation error
> -------------------------------------------
>
>                 Key: WICKET-710
>                 URL: https://issues.apache.org/jira/browse/WICKET-710
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket-examples
>    Affects Versions: 1.2.6, 1.3.0-beta1, 1.3.0-beta2
>            Reporter: Joshua Lim
>             Fix For: 1.3.0-beta3
>
>
> I am encountering a behaviour on 1.2.6 and 1.3 trunk. Using the FormInput wicket-example
> When I clear the "String" TextField (which is a RequiredTextField) to force an "error" on the form , my values on the
> RadioGroup and CheckGroup seems to be cleared as well... This causes the user to have to repeat answering these.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Issue Comment Edited: (WICKET-710) Radio/Check/Box cleared on validation error

Posted by "Joshua Lim (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/WICKET-710?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12509064 ] 

Joshua Lim edited comment on WICKET-710 at 6/29/07 2:07 AM:
------------------------------------------------------------

The example on wicket-example has this error, because reuseItems was not set to true for a ListView in a From
so it should be ok to close this ;)

Index: /Users/josh/Development/wicket/trunk/jdk-1.5/wicket-examples/src/main/java/org/apache/wicket/examples/forminput/FormInput.java
===================================================================
--- /Users/josh/Development/wicket/trunk/jdk-1.5/wicket-examples/src/main/java/org/apache/wicket/examples/forminput/FormInput.java	(revision 551819)
+++ /Users/josh/Development/wicket/trunk/jdk-1.5/wicket-examples/src/main/java/org/apache/wicket/examples/forminput/FormInput.java	(working copy)
@@ -123,7 +123,7 @@
 					item.add(new Radio("radio", item.getModel()));
 					item.add(new Label("number", item.getModelObjectAsString()));
 				};
-			};
+			}.setReuseItems(true);
 			group.add(persons);
 
 			CheckGroup checks = new CheckGroup("numbersCheckGroup");
@@ -135,7 +135,8 @@
 					item.add(new Check("check", item.getModel()));
 					item.add(new Label("number", item.getModelObjectAsString()));
 				};
-			};
+			}.setReuseItems(true);
+			
 			checks.add(checksList);
 
 			add(new ListMultipleChoice("siteSelection", SITES));



 was:
The example on wicket-example has this error, because reuseItems was not set to true for a ListView in a From



> Radio/Check/Box cleared on validation error
> -------------------------------------------
>
>                 Key: WICKET-710
>                 URL: https://issues.apache.org/jira/browse/WICKET-710
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket
>    Affects Versions: 1.2.6, 1.3.0-beta1, 1.3.0-beta2
>            Reporter: Joshua Lim
>
> I am encountering a behaviour on 1.2.6 and 1.3 trunk. Using the FormInput wicket-example
> When I clear the "String" TextField (which is a RequiredTextField) to force an "error" on the form , my values on the
> RadioGroup and CheckGroup seems to be cleared as well... This causes the user to have to repeat answering these.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (WICKET-710) Radio/Check/Box cleared on validation error

Posted by "Joshua Lim (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/WICKET-710?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12509064 ] 

Joshua Lim commented on WICKET-710:
-----------------------------------

The example on wicket-example has this error, because reuseItems was not set to true for a ListView in a From



> Radio/Check/Box cleared on validation error
> -------------------------------------------
>
>                 Key: WICKET-710
>                 URL: https://issues.apache.org/jira/browse/WICKET-710
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket
>    Affects Versions: 1.2.6, 1.3.0-beta1, 1.3.0-beta2
>            Reporter: Joshua Lim
>
> I am encountering a behaviour on 1.2.6 and 1.3 trunk. Using the FormInput wicket-example
> When I clear the "String" TextField (which is a RequiredTextField) to force an "error" on the form , my values on the
> RadioGroup and CheckGroup seems to be cleared as well... This causes the user to have to repeat answering these.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.