I am migrating a v7 vaadin application to vaadin v23 and I have found a validator called CompositeValidator which is being used to combine two or more validators and display the error (invalid) messages from the validators in a stacked manner instead of only one invalid message at a time. Do we have any supporting plugins for replicating the same in v23 or should we implement it manually ? … Thank you.
You can use multiple validators when you bind the field: https://vaadin.com/docs/latest/flow/binding-data/components-binder-validation#multiple-validators
I think you are looking for something like this https://cookbook.vaadin.com/multi-validator
1 Like
I have tried it but I need to show multiple validation messages at once. I think the below example by Andris (multi-validator) suits my use case in a better way.
Yes exactly… Thank you.