Search code examples
validationgwtgxt

GXT Field Validation -- How can I disable the TextField validation icon?


I have a Validator attached to a field. When validation fails, I want the red line to appear in the field, but I do not want the red icon to appear to the right of the field. How can I accomplish this? I don't see this functionality in the documentation. Thanks!

I also posted this on Sencha's forums but they are very slow: http://www.sencha.com/forum/showthread.php?175577-How-can-I-disable-the-TextField-validation-icon&p=718440#post718440


Solution

  • I got the answer from the Sencha forums.

    Check out Field.setMessageTarget(String) - you'll want to pass in "tooltip" (or, to just not draw that icon, anything but "side"). With that set, it shouldn't even attempt to draw the icon.

    http://www.sencha.com/forum/showthread.php?175577-How-can-I-disable-the-TextField-validation-icon&p=718440