Hi,
I implemented the Editor<T> interface in a dialog and everything is working fine. Now I want to add validation.
I have a textfield
Code:
TextField policyNr = new TextField();
policyNr.addValidator(new EmptyValidator<String>());
I would think that if I call flush on the driver when policyNr has an empty String as value that the call to driver.hasErrors() will return true. But it is not. Am I missing something?
Code:
transporter = driver.flush();
if (driver.hasErrors()) {
transporterAsyncCallback.onFailure(new Throwable("Validation Errors"));
return;
}