Re: [Wicket-user] FormInput Example on 1.3 Clearing Radio/Check/Box on error

2007-06-29 Thread Joshua Lim

the bug is in the wicket-examples using a ListView in a Form without
setResueItems set



On 6/29/07, Joshua Lim [EMAIL PROTECTED] wrote:


Here it is : https://issues.apache.org/jira/browse/WICKET-710

On 6/29/07, Igor Vaynberg  [EMAIL PROTECTED] wrote:

 On 6/28/07, Joshua Lim [EMAIL PROTECTED] wrote:

  Hi
 
  I am encountering a behaviour on 1.3 trunk forminput on
  wicket-examples which I think wasn't the same before.(been away from wicket
  for a while)
 
  When I clear the String TextField (which is a requiredTextField) to
  force an error , my values on the
  Radio/Check/Group seems to be cleared as well...
 
  Is this normal?


 this is definetely not normal, please file a bug report.

 -igor



  -
  This SF.net email is sponsored by DB2 Express
  Download DB2 Express C - the FREE version of DB2 express and take
  control of your XML. No limits. Just data. Click to get it now.
  http://sourceforge.net/powerbar/db2/
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 
 


 -
 This SF.net email is sponsored by DB2 Express
 Download DB2 Express C - the FREE version of DB2 express and take
 control of your XML. No limits. Just data. Click to get it now.
 http://sourceforge.net/powerbar/db2/
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user



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));
-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] FormInput Example on 1.3 Clearing Radio/Check/Box on error

2007-06-28 Thread Joshua Lim

Hi

I am encountering a behaviour on 1.3 trunk forminput on wicket-examples
which I think wasn't the same before.(been away from wicket for a while)


When I clear the String TextField (which is a requiredTextField) to force
an error , my values on the
Radio/Check/Group seems to be cleared as well...

Is this normal?
-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] FormInput Example on 1.3 Clearing Radio/Check/Box on error

2007-06-28 Thread Igor Vaynberg

On 6/28/07, Joshua Lim [EMAIL PROTECTED] wrote:


Hi

I am encountering a behaviour on 1.3 trunk forminput on wicket-examples
which I think wasn't the same before.(been away from wicket for a while)


When I clear the String TextField (which is a requiredTextField) to
force an error , my values on the
Radio/Check/Group seems to be cleared as well...

Is this normal?



this is definetely not normal, please file a bug report.

-igor


-

This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] FormInput Example on 1.3 Clearing Radio/Check/Box on error

2007-06-28 Thread Joshua Lim

Here it is : https://issues.apache.org/jira/browse/WICKET-710

On 6/29/07, Igor Vaynberg [EMAIL PROTECTED] wrote:


On 6/28/07, Joshua Lim [EMAIL PROTECTED] wrote:

 Hi

 I am encountering a behaviour on 1.3 trunk forminput on wicket-examples
 which I think wasn't the same before.(been away from wicket for a while)


 When I clear the String TextField (which is a requiredTextField) to
 force an error , my values on the
 Radio/Check/Group seems to be cleared as well...

 Is this normal?


this is definetely not normal, please file a bug report.

-igor


-
 This SF.net email is sponsored by DB2 Express
 Download DB2 Express C - the FREE version of DB2 express and take
 control of your XML. No limits. Just data. Click to get it now.
 http://sourceforge.net/powerbar/db2/
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user



-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user