Loading...
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.

Product icon
TUTORIAL

Vaadin lets you build secure, UX-first PWAs entirely in Java.
Free ebook & tutorial.

Unable to get error indicator next to field caption for Custom Validation

Rakesh C
1 decade ago Feb 03, 2012 1:19pm
Marcel Hallmann
1 decade ago Feb 03, 2012 1:55pm

Well, I'm not sure if I understand the problem correctly, but don't you have to set the componentError on the Field where the error occured instead onto the form?
Somethin like

textfield.setComponentError(new UserError(customErrorMessage)); 
Rakesh C
1 decade ago Feb 06, 2012 6:46am