Vaadin8: Validation without binding possible

How can I validate or show a validation error in a form if I don’t want to use binding?


I think the recommended approach is to do validation as part of a value-change event listener. You can still use a validator like StringLengthValidator, but you have to manually invoke it on value change.

…and if I find an error do I call setComponentError()? The argument is an ErrorMessage. How do I construct an ErrorMessage?

new UserError("message to be shown");

Excellent, thanks!