View Full Version : TextField allowBlank() validation for spaces

6 Nov 2009, 8:20 AM

I have a TextField component and I am setting the allow blank property to false (setAllowBlank(false)) on that component.
I was wondering if it's been considered to add the validation so that the actual value of the field is not blank (considering that the value contains only spaces), this is because if I enter just spaces in the text field then that is evaluated as correct and no error is generated.

Right now that validation only checks that the value's length is zero.

I am using GXT version 2.0.1 and it happens on IE7 and Firefox 3.5.4 (although I think that it doesn't depend on the browser's version).

Thank you!