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.0.18, 5.2.0.0
Reporter: Howard M. Lewis Ship
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.
-
You can reply to this email to add a comment to the issue online.