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
@lesinsa you are right that Size annotation presence should not be checked within isRequiredByAnnotations. Null elements should be valid when the Size annotation is specified. I have released version 1.6.4 with that fix.
Recognizing validation groups within isRequiredByAnnotations is more conceptual problem - validation groups passed into bind method can be propagated (and stored) at AbstractFormElement level. You are welcome to create a pull request if you want to implement this feature yourself. For now, the library evaluates annotations in static way regarding the isRequired() getter.
Required flag on some form field is still true even if field with NonEmpty annotation has unused validation group specified.
The text was updated successfully, but these errors were encountered: