hilla
hilla copied to clipboard
PastOrPresent and FutureOrPresent validators are not picked by binder
If I use jakarta.validation.constraints.PastOrPresent in my data entity, the binder does not recognize this. I can set the date to the future with the bound vaadin-date-picker. This will result:
Failed to load resource: the server responded with a status of 400 ()
crm-store.ts:108 Error: Validation error in endpoint 'CrmEndpoint' method 'saveContact'
at throwConnectException (Connect.ts:118:11)
at assertResponseIsOk (Connect.ts:141:7)
at async responseHandlerMiddleware (Connect.ts:382:7)
at async CrmStore.saveContact (crm-store.ts:105:30)
at async ListViewStore.save (list-view-store.ts:40:9)
at async Binder.submitTo (Binder.ts:178:14)
at async ContactForm.save (contact-form.ts:113:5)
Note, the same applies to If I use jakarta.validation.constraints.FutureOrPresent as well