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.

Validator's error msg not shown when field added inside window

jian hwa chin
9 years ago Jul 10, 2012 2:03am

Hi, i'm using vaadin nightly 7.0.0 20120706.. i'm having this problem which my text field's validator error msg not shown when added inside a window. Anyone experience this? Is this a bug?

FormLayout form = new FormLayout();
TextField tf = new TextField("A field, must contain 1-2 chars");
tf.setImmediate(true);
 tf.addValidator(new StringLengthValidator("Invalid length", 1, 2, false));
 tf.setRequired(true);
 tf.setValue("abcd");
form.addComponent(tf);
Window wind = new Window();
wind.addComponent(form);
 Root.getCurrent().addWindow(wind);

jian hwa chin
9 years ago Jul 26, 2012 4:22am

Still no solution for this. I'm using vaadin 7 nightly build, the problem seem not solved yet. Anybody ?

Szilard Szabo
9 years ago Jan 10, 2013 1:26pm
Henri Sara
9 years ago Jan 10, 2013 1:34pm
Szilard Szabo
9 years ago Jan 14, 2013 2:07pm