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
The javadoc of @PositiveOrZero says that "null elements are considered valid.". However, the client side validation will not accept null fields.
Expected-behavior
Null values are being accepted on the client-side for fields that are annotated with @PositiveOrZero
Reproduction
Annotate a DTO-Field on the java side with @PositiveOrZero, then bind the client side representation of that field to an vaadin-integer-field in a form. Leave that field empty and call validate() on the binder. The empty value will not be accepted.
System Info
Windows 11, Java 22, Chrome
The text was updated successfully, but these errors were encountered:
What Java type are you using for that field? Non-nullability can be triggered by using primitive types or by using @NonNullApi annotation in the package.
Describe the bug
The javadoc of @PositiveOrZero says that "null elements are considered valid.". However, the client side validation will not accept null fields.
Expected-behavior
Null values are being accepted on the client-side for fields that are annotated with @PositiveOrZero
Reproduction
Annotate a DTO-Field on the java side with @PositiveOrZero, then bind the client side representation of that field to an vaadin-integer-field in a form. Leave that field empty and call validate() on the binder. The empty value will not be accepted.
System Info
Windows 11, Java 22, Chrome
The text was updated successfully, but these errors were encountered: