You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Seven Corners <sh...@blackwave.tv> on 2009/03/27 14:35:59 UTC

Form validation with coupled components

I have a form that contains a few checkboxes, and the form should fail
validation only if ALL of them are unchecked.  How can I do this?  I see how
to validate that a single control is required but not to check for coupled
controls.
-- 
View this message in context: http://www.nabble.com/Form-validation-with-coupled-components-tp22741741p22741741.html
Sent from the Wicket - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: Form validation with coupled components

Posted by Seven Corners <sh...@blackwave.tv>.
OK, good, thank you, Martin!

Shelah

-- 
View this message in context: http://www.nabble.com/Form-validation-with-coupled-components-tp22741741p22742000.html
Sent from the Wicket - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: Form validation with coupled components

Posted by Martin Makundi <ma...@koodaripalvelut.com>.
Actually it's EqualInputValidator

**
Martin

2009/3/27 Martin Makundi <ma...@koodaripalvelut.com>:
>> I see how to validate that a single control is required but not to
>> check for coupled controls.
>
> This is a COMPONENT validator.
>
>> I have a form that contains a few checkboxes, and the form should fail
>> validation only if ALL of them are unchecked.
>
> You need FORM VALIDATOR. See for example EqualPasswordValidator and
> make something similar.
>
> **
> Martin
>
>> --
>> View this message in context: http://www.nabble.com/Form-validation-with-coupled-components-tp22741741p22741741.html
>> Sent from the Wicket - User mailing list archive at Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>> For additional commands, e-mail: users-help@wicket.apache.org
>>
>>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: Form validation with coupled components

Posted by Martin Makundi <ma...@koodaripalvelut.com>.
> I see how to validate that a single control is required but not to
> check for coupled controls.

This is a COMPONENT validator.

> I have a form that contains a few checkboxes, and the form should fail
> validation only if ALL of them are unchecked.

You need FORM VALIDATOR. See for example EqualPasswordValidator and
make something similar.

**
Martin

> --
> View this message in context: http://www.nabble.com/Form-validation-with-coupled-components-tp22741741p22741741.html
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org