[ 
https://issues.apache.org/jira/browse/WICKET-6449?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16126764#comment-16126764
 ] 

Maxim Solodovnik commented on WICKET-6449:
------------------------------------------

I would agree with comments to WICKET-1221
Both true and false are valid values for checkbox, it is not tri-state component
In your dropdown example error will be raised only in case value is null, in 
case dropdown is not nullable onError will not be called even if user will not 
make any choice ....

And I believe you are right setRequired does not make much sense for checkbox

> Form should raise validation error when required checkbox is not set
> --------------------------------------------------------------------
>
>                 Key: WICKET-6449
>                 URL: https://issues.apache.org/jira/browse/WICKET-6449
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket
>    Affects Versions: 8.0.0-M6
>            Reporter: Kamil
>            Assignee: Sven Meier
>         Attachments: showcase-requiredCheckbox.zip
>
>
> Every user before he registers must agree to terms&conditions, thus proper 
> checkbox is required to check and validation error should be raised when 
> required checkbox is not checked.
> This test case shows incorrect behavior



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to