0 votes
in Vaadin Unplugged by
Which of the following Code Snippet is used to display error message to the user for a Text Field component?

a) textfield.setComponentError(new Error(“InCorrect value”));

b) textfield.setError(new UserError(“InCorrect value”));

c) textfield.setComponentError(new UserError(“InCorrect value”));

d) All the options

1 Answer

0 votes
by
textfield.setComponentError(new UserError(“InCorrect value”));
...