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.

Validating Text field without using Vaadin Form

warsame bashir
10 years ago Mar 06, 2012 11:29pm
Mathias Clerc
10 years ago Mar 07, 2012 12:31am
Danny Roest
10 years ago Mar 07, 2012 7:21am
warsame bashir
10 years ago Mar 09, 2012 12:21am
Henri Kerola
10 years ago Mar 09, 2012 8:48am

warsame bashir: The component iterator returns all components in the layout and i was only looking for the textfields.

You can check the type of field by saying:

if (iterator.next() instanceof TextField) {
...
}

or save references to your text fields into your own list.

Last updated on Mar, 9th 2012
warsame bashir
10 years ago Mar 14, 2012 8:46pm
Sergey Skoptsov
10 years ago Mar 16, 2012 8:54am
Venkatesh K
7 years ago Aug 20, 2014 11:10am