Important Notice - Forums is archived
To simplify things and help our users to be more productive, we have archived the current forum and focus our efforts on helping developers on Stack Overflow. You can post new questions on Stack Overflow or join our Discord channel.

TUTORIALVaadin lets you build secure, UX-first PWAs entirely in Java.
Vaadin lets you build secure, UX-first PWAs entirely in Java.
Free ebook & tutorial.
Calling javascript synchronously by Enver Haase, 1 week ago
CustomField validation error
I´ve created a CustomField with two TextFields and one Combobox in a HorizontalLayout. If the input does not pass validation I want to display the whole field as invalid like in other single fields. Is there a possibility to do so?
Regards Rainer
Last updated on
Hi Rainer. Not sure what you're after exactly, where do you want to show the error specifically, but you can show an error for any component with
myComponent.setErrorMessage(new UserError("invalid input"));
There display location of the error depends on the component.
Last updated on
You cannot reply to this thread.