Add-on Directory

Spring Binder Add-on for Vaadin - Vaadin Add-on Directory

A Vaadin Flow Binder implementation integrating Spring converters Spring Binder Add-on for Vaadin - Vaadin Add-on Directory
An injectable Vaadin Flow `Binder` that converts between field and bean types through Spring's `ConversionService`. The `Converter` beans your application already registers are applied to your forms — no per-binding wiring: ```java @Route("race-result") public class RaceResultView extends VerticalLayout { public RaceResultView(SpringBinder binder) { add(team, place, duration); // duration is a TextField, binder.bindInstanceFields(this); // RaceResult.duration is not a String binder.setBean(new RaceResult()); } } ``` The bean type comes from the injection point, so nothing passes it explicitly. - `SpringBeanValidationBinder` applies JSR-303 constraints through your application's `ValidatorFactory`, with messages interpolated for the current UI's locale, so `ValidationMessages.properties` is honored, and constraint validators can be Spring beans. - `SpringBinderFactory` and `SpringBinderProvider` cover forms an injection point cannot: one per row of a grid, or a component created with `new`. - Whether Vaadin's converters or Spring's win for a given type pair is configurable, per application or per binder. Nothing to enable; it is a Spring Boot auto-configuration. **This is an alpha.** The API is the shape intended for 1.0, but it has not been used outside its own test suite yet. Please read the Known limitations in the README before adopting it, and open an issue with what you find.
View on GitHub

Spring Binder Add-on for Vaadin version 1.0.0-alpha1