I started working on form level validation (which is what you want) some time ago, but removed it from cvs again, as I thought it cluttered the API too much/ was too hard to use. So, you should either write your custom validator that is smart enough to work with more components, or you should handle this in onSubmit (you can set errors manually if you want, and if you set such messages on the form, I think your scoping is just right). I think the latter is easiest is most transparent.

Eelco


Johannes Fahrenkrug wrote:

Hi,

it's me with my DropDownChoices again....
Now I'm at the point where I have to validate the user input.
I have a (dynamic) list of DropDownChoices. It can have a variable
number of rows and each row has a DropDownChoice.
The user has to set at least one of the DropDownChoices to a non-zero
value. What is the best practice to validate such the input in this case?

- Johannes


-------------------------------------------------------
This SF.Net email is sponsored by the 'Do More With Dual!' webinar happening
July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual
core and dual graphics technology at this free one hour event hosted by HP,
AMD, and NVIDIA.  To register visit http://www.hp.com/go/dualwebinar
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user



-------------------------------------------------------
This SF.Net email is sponsored by the 'Do More With Dual!' webinar happening
July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual
core and dual graphics technology at this free one hour event hosted by HP,
AMD, and NVIDIA.  To register visit http://www.hp.com/go/dualwebinar
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to