[ 
https://issues.apache.org/jira/browse/TAP5-860?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Howard M. Lewis Ship closed TAP5-860.
-------------------------------------

       Resolution: Fixed
    Fix Version/s: 5.4
         Assignee: Howard M. Lewis Ship

This has been addressed with the overall changes to client in 5.4.
                
> JavaScript errors when adding validations to checkboxes
> -------------------------------------------------------
>
>                 Key: TAP5-860
>                 URL: https://issues.apache.org/jira/browse/TAP5-860
>             Project: Tapestry 5
>          Issue Type: Bug
>          Components: tapestry-core
>    Affects Versions: 5.2
>            Reporter: Howard M. Lewis Ship
>            Assignee: Howard M. Lewis Ship
>             Fix For: 5.4
>
>
> Tapestry doesn't support validations on checkboxes out of the box (after all, 
> it's either on or off).  Perhaps supporting the required validator would not 
> be so bad.
> However, it is reasonable to add a validator on the client side, for example, 
> to implement "if this is selected, this must be checked as well" scenarios.
> Anyway, because $F() of a checkbox return nulls, this line fails
>         if (!t.validationError && ! value.blank())
> because value is null
> This is in Tapestry.FieldEventManager.validateInput

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to