Binder validation just for one field

Hello, is there a way to do a bean validation just for one component without creating an extra bean? I found following post but it has been posted 5 years ago. Is there a way to do this in Vaadin 14?

Creating the dto / bean is way easier and more maintainable in the long run

even when you just need to validate one single field?


There is an sdd-on called FieldBinder in the Directory.

:wave: we use a dummy getter/setter for Binder#forField#bind(o -> null, (o, o2) -> {}); instead of a whole dummy bean (as suggested in a previous commend).