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

Kamil commented on WICKET-6449:
-------------------------------

[~solomax] an perfect analogy to your example:
"in my *checkbox* example error will be raised only in case value is *false* in 
case *checkbox* is *required*. If it's not required onError will not be called 
even if user will not make any *check*" 

currently you could:
* remove setRequired as it doesn't do anything OR
* make use of if setRequired(true) in a way that is 100% compatibile with 
current solution but provides additional use case:
** anybody who setRequired(false) (or doesn't do anything as it is the default) 
still have exactly the same behavior
** anybody who setRequired(true) will have new functionality

> 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