private void showPwdValidatorError(String label, Validator validator) { this.view.addResourceDynamicMenssage( WordFormatter.formatErrorMessage( label, WordFormatter.ocult(validator.getValue().toString()), validator.getErrorMessage()), getSaida()); }
protected boolean evaluateValidators(List<ValidationRequest> validations) throws Exception { boolean returned = true; for (ValidationRequest validation : validations) { Validator validador = validation.getValidator(); if (validation.getPath() != null && !validation.getPath().isEmpty()) { validador.setValue( BeanProperty.instance().getNestedProperty(getBackBean(), validation.getPath())); } if (!validador.isValid() && ValidatorFactory.checkInvalidPermiteds(validation.getInvalidPermiteds(), validador)) { for (String out : validation.getOut()) { getView().addLocalDynamicMenssage("* " + validador.getErrorMessage(), out, false); } returned = false; } } return returned; }