Eager Validation in Vaadin 12

Hi everybody,
in the announcements of Vaadin 8 there is also eager validation (while typing) mentioned (see https://vaadin.com/framework/whatsnew)
Is this feature still available in Vaadin 12 ? When I tried the example from the link above with Vaadin 12, validation only worked when I moved to another field, so not while typing.

Cheers

Joern

Sorry, look in the book :slight_smile:
With setValueChangeMode set to EAGER it works. Anyway, if there is any more generic way, please let me know !

Joern

are you using a binder?

Hi Brett,
yes, I followed an example analog to the link I provided before

User user = new User();
TextField textField = new TextField("Vaadin 8");
Binder<User> binder = new Binder<>();
binder.setBean(user);
binder.forField(textField)
    .withValidator(new StringLengthValidator(
      "Too short", 8, 256))
    .bind(User::getUsername, User::setUsername);

If I add

textField.setValueChangeMode(ValueChangeMode.EAGER);

everything works as expected
This is ok for me, but was just wondering, if this is the default.

Cheers

Joern