8 Jul 2008 12:23 PM #1
[CLOSED] Field markInvalid not make invalid the formPanel
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:
TextField field = new TextField(); field.setFieldLabel("Field"); username.markInvalid("Invalid field"); System.out.println("Field is valid:" +username.isValid());
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
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)
27 May 2010 1:11 AM #4
Hi, do you find the solution to invalidate the field ?