use of com.evolveum.midpoint.web.util.validation.SimpleValidationError in project midpoint by Evolveum.
the class PageAdminObjectDetails method checkValidationErrors.
protected boolean checkValidationErrors(AjaxRequestTarget target, Collection<SimpleValidationError> validationErrors) {
if (validationErrors != null && !validationErrors.isEmpty()) {
for (SimpleValidationError error : validationErrors) {
LOGGER.error("Validation error, attribute: '" + error.printAttribute() + "', message: '" + error.getMessage() + "'.");
error("Validation error, attribute: '" + error.printAttribute() + "', message: '" + error.getMessage() + "'.");
}
target.add(getFeedbackPanel());
return true;
}
return false;
}
Aggregations