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, 6 days ago
How to clear errors from a form
I thought this matter to be simple but I'm having a hard time with it.
I have a form in which the user enters data, it then click save, he happens to have bad values so the form diplays error messages. fine.
Now if the user clicks on cancel, I am performing a Form.discard(), and I would like the error to just go away, but it stays on screen.
Is there a way to simply clear the errors from a form?
Thank you.
JS.
P.S. using Vaadin 6.5.0
Last updated on
From memory, using setComponentError(null) should remove the error.
Last updated on
You cannot reply to this thread.