How to add a custom validator if a certain annotation is present
xylo opened this issue · 2 comments
xylo commented
When I annotate a String
property with @Size(min=2, max=10)
FXForm automatically adds the corresponding validator to the field.
Is it possible to add custom annotation-validator mappings? For instance I would like to support the @before annotation and some others.
xylo commented
After creating this issue I saw that questions should be posted on stackoverflow. So I posted this one here: http://stackoverflow.com/questions/43489884/how-to-add-a-custom-validator-if-a-certain-annotation-is-present
BTW: I added the tag fxform2, in case you want to subscribe to it.
amischler commented
Answered on SO. Thanks for adding the tag.