I have a problem with invalid textField. I have created this function to help me put some textfield invalid without the (!) bubble.
private void checkTextField(TextField Text){
Text.setErrorSupport(new TitleErrorHandler(Text));
Text.forceInvalid("");
}
My problem is that now when I try to save my page, I want to ignore that error even if it's still active. The API told me to do this:
public void forceInvalid(java.lang.String msg)
Forces the field to be invalid using the given error message. When using this feature, clearInvalid() must be called to clear the error. Also, no other validation logic will execute.
myText.clearInvalid();
but when I do it and check if the form hasErrors()
it return true.
is there another way to ignore the errors?