validate(); } catch (Validator.InvalidValueException e) { if (!e.isInvisible()) { validationError = e;
/** * Perform validation of the field and return the validation error found, if * any. * * @return */ protected ErrorMessage getValidationError() { try { validate(); } catch (Validator.InvalidValueException e) { if (!e.isInvisible()) { return e; } } return null; }