-
8 Jul 2008 12:23 PM #1
[CLOSED] Field markInvalid not make invalid the formPanel
[CLOSED] Field markInvalid not make invalid the formPanel
Hi all,
when I use the method markInvalid() on a field of a form panel it don't invalid the formPanel neither itself. Infact if I execute:
The System.out print that the field is valid. It's a normal behavior?Code:TextField field = new TextField(); field.setFieldLabel("Field"); username.markInvalid("Invalid field"); System.out.println("Field is valid:" +username.isValid());
Thanks
-
9 Jul 2008 6:28 PM #2
A field is not valid as determined by the isValid method. Typically, markInvalid is not called directly, rather by the fields themselves when validation fails. Calling markInvalid will have no effect on what is returned by isValid.
-
9 Jul 2008 11:23 PM #3
Hi darrellmeyer,
thanks for your replay. So which is the correct method to invalidate a field if I want to execute a particular validation only when I decide to make it? (for example only when I press the submit button)
Thanks!
-
27 May 2010 1:11 AM #4
Hi, do you find the solution to invalidate the field ?


Reply With Quote