alejandro-du / crudui

Automatically generate CRUD-like Vaadin views for any Java Bean
https://vaadin.com/directory#!addon/crud-ui-add-on
Apache License 2.0
86 stars 54 forks source link

Cannot use custom crossfield validator annotations #57

Closed nileshpandit009 closed 4 years ago

nileshpandit009 commented 4 years ago

I have a custom cross-field validator @StartEndDate which checks if the end date is chronologically after the start date. The annotation has @Target as ElementType.TYPE. I have setUseBeanValidation(true) on my CrudFormFactory but this validation doesn't even gets triggered. I have tested different types of @Target and found out that, somehow, in crud ui, annotation that have @Target({ElementType.FIELD}) only work. I need a cross-field validation functionality in my use case. Is there a way to do so? Please help.

sandronm commented 1 year ago

@nileshpandit009 is it solved? Did you finally found how to deal with cross fields validation?