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.

Regarding custom validators

Shankari GR
1 decade ago Sep 08, 2011 1:40am
Marko Grönroos
1 decade ago Sep 08, 2011 7:03am
Henri Sara
1 decade ago Sep 08, 2011 7:45am

Shankari GR: I have implemented validator interface in a class and have added it to a field in my form and when i give form.commit() i couldnt get any error messages.

This should work.

Where and how do you add the validator? Do the default validators work if you add them in the same location in code? Maybe e.g. the field gets generated more than once using a field factory (e.g. if the data source of the form is set multiple times) and you only set it for a field instance that is not used.

Shankari GR
1 decade ago Sep 08, 2011 3:57pm
Marko Grönroos
1 decade ago Sep 08, 2011 4:33pm
Shankari GR
1 decade ago Sep 08, 2011 5:02pm
Shankari GR
1 decade ago Sep 08, 2011 5:15pm
Shankari GR
1 decade ago Sep 09, 2011 8:50am
Marko Grönroos
1 decade ago Sep 09, 2011 1:20pm
krishna varma
7 years ago May 06, 2015 9:25am
Kshitij Arade
7 years ago May 06, 2015 9:51am
krishna varma
7 years ago May 06, 2015 9:58am
Kshitij Arade
7 years ago May 07, 2015 3:24am