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 https://github.com/vaadin/framework/issues/8294 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?

Yes

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). https://vaadin.com/api/platform/14.8.19/com/vaadin/flow/data/binder/Binder.BindingBuilder.html#bind-com.vaadin.flow.function.ValueProvider-com.vaadin.flow.data.binder.Setter-