You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If invalid value submitted the select choice throws an exception TransformationFailedException where radio\checkbox choices set the value to NULL.
This behavior cause some problems at validation stage.
First one is Choice constraint. It do nothing for NULL values.
Next problem more serious. If you dont have NotBlank constraint at the field you will pass validation with NULL value where someone would expect a value from choice set.
Personally I prefer TransformationFailedException for such cases.
The text was updated successfully, but these errors were encountered:
If invalid value submitted the select choice throws an exception
TransformationFailedException
where radio\checkbox choices set the value toNULL
.This behavior cause some problems at validation stage.
Choice
constraint. It do nothing forNULL
values.NotBlank
constraint at the field you will pass validation withNULL
value where someone would expect a value from choice set.Personally I prefer
TransformationFailedException
for such cases.The text was updated successfully, but these errors were encountered: