How do I get error messages from Validators.
Ive used to the field interface to pull the validators using getValidators();
But have no idea how to return the messages from the field in error.
Example:
Code:
EditorDelegate<Field> d = new EditorDelegate<Field>() {
@Override
public String getPath() {
return null; //To change body of implemented methods use File | Settings | File Templates.
}
@Override
public void recordError(String s, Object o, Object o2) {
GWT.log("Record error: " + s);
}
@Override
public void setDirty(boolean b) {
}
@Override
public HandlerRegistration subscribe() {
return null; //To change body of implemented methods use File | Settings | File Templates.
}
};
f.setDelegate(d);