public UniqueColumnValueChecker(UIData table, UIInput input) { this.table = table; rowIndex = table.getRowIndex(); this.input = input; value = input.getLocalValue(); }
public UniqueColumnValueChecker(UIData table, UIInput input) { this.table = table; rowIndex = table.getRowIndex(); this.input = input; value = input.getLocalValue(); }
public void validatePassword(FacesContext context, UIComponent component, Object value) { Object firstPassword = getReferencedComponent("firstPasswordInputId", component).getLocalValue(); Object secondPassword = getReferencedComponent("secondPasswordInputId", component).getLocalValue(); if (firstPassword == null || secondPassword == null) { log.error("Cannot validate passwords: value(s) not found"); return; } if (!firstPassword.equals(secondPassword)) { throwValidationException(context, "label.userManager.password.not.match"); } }
/** * <p class="changed_added_2_2">If there is a local value, return it, * otherwise return the result of calling {@code super.getVaue()}.</p> * * @since 2.2 */ @Override public Object getValue() { return isLocalValueSet() ? getLocalValue() : super.getValue(); }
/** * <p class="changed_added_2_2">If there is a local value, return it, * otherwise return the result of calling {@code super.getVaue()}.</p> * * @since 2.2 */ @Override public Object getValue() { return isLocalValueSet() ? getLocalValue() : super.getValue(); }
/** * <p class="changed_added_2_2">If there is a local value, return it, * otherwise return the result of calling {@code super.getVaue()}.</p> * * @since 2.2 */ @Override public Object getValue() { return isLocalValueSet() ? getLocalValue() : super.getValue(); }
/** * <p class="changed_added_2_2">If there is a local value, return it, * otherwise return the result of calling {@code super.getVaue()}.</p> * * @since 2.2 */ @Override public Object getValue() { return isLocalValueSet() ? getLocalValue() : super.getValue(); }
/** * <p class="changed_added_2_2">If there is a local value, return it, * otherwise return the result of calling {@code super.getVaue()}.</p> * * @since 2.2 */ @Override public Object getValue() { return isLocalValueSet() ? getLocalValue() : super.getValue(); }
public Object getValue() { if (isLocalValueSet()) { return getLocalValue(); } return super.getValue(); }
/** * <p class="changed_added_2_2">If there is a local value, return it, * otherwise return the result of calling {@code super.getVaue()}.</p> * * @since 2.2 */ @Override public Object getValue() { return isLocalValueSet() ? getLocalValue() : super.getValue(); }
private static Object getComponentValue(UIComponent component) { UIInput inputComponent = (UIInput) component; return inputComponent.getSubmittedValue() != null ? inputComponent.getSubmittedValue() : inputComponent.getLocalValue(); } }
/** * <p class="changed_added_2_2">If there is a local value, return it, * otherwise return the result of calling {@code super.getVaue()}.</p> * * @since 2.2 */ @Override public Object getValue() { return isLocalValueSet() ? getLocalValue() : super.getValue(); }
private static Object getComponentValue(UIComponent component) { UIInput inputComponent = (UIInput) component; return inputComponent.getSubmittedValue() != null ? inputComponent.getSubmittedValue() : inputComponent.getLocalValue(); } }
/** * <p class="changed_added_2_2">If there is a local value, return it, * otherwise return the result of calling {@code super.getVaue()}.</p> * * @since 2.2 */ @Override public Object getValue() { return isLocalValueSet() ? getLocalValue() : super.getValue(); }
private static Object getComponentValue(UIComponent component) { UIInput inputComponent = (UIInput) component; return inputComponent.getSubmittedValue() != null ? inputComponent.getSubmittedValue() : inputComponent.getLocalValue(); } }
@Override public VisitResult visit(VisitContext context, UIComponent target) { // Yes, this check does look a bit strange, but really physically the very same single UIInput component is // been reused in all rows of the UIData component. It's only its internal state which changes on a per-row // basis, as would happen during the tree visit. Those changes are reflected in the "input" reference. if (target == input && rowIndex != table.getRowIndex() && input.isValid() && value.equals(input.getLocalValue())) { duplicate = true; duplicateIndex = table.getRowIndex(); return VisitResult.COMPLETE; } return VisitResult.ACCEPT; }
@Override public VisitResult visit(VisitContext context, UIComponent target) { // Yes, this check does look a bit strange, but really physically the very same single UIInput component is // been reused in all rows of the UIData component. It's only its internal state which changes on a per-row // basis, as would happen during the tree visit. Those changes are reflected in the "input" reference. if (target == input && rowIndex != table.getRowIndex() && input.isValid() && value.equals(input.getLocalValue())) { duplicate = true; duplicateIndex = table.getRowIndex(); return VisitResult.COMPLETE; } return VisitResult.ACCEPT; }
public Object getLocalValue() { setupPerspective(); Object retValue = innerGetDelegateInput().getLocalValue(); teardownPerspective(); return retValue; }
public void validateObject(FacesContext context, UIComponent component, Object value) { String msg; FacesMessage message; String bundleName = context.getApplication().getMessageBundle(); Locale locale = context.getViewRoot().getLocale(); if ( (null != objectDocumentUidInput) && StringUtils.isNotBlank((String) objectDocumentUidInput.getLocalValue()) ) { return; } msg = I18NUtils.getMessageString(bundleName, "acaren.dafpic.title.create.relation.contact.error.required.object.document", null, locale); message = new FacesMessage(msg); message.setSeverity(FacesMessage.SEVERITY_ERROR); throw new ValidatorException(message); }
public void validateObject(FacesContext context, UIComponent component, Object value) { String msg; FacesMessage message; String bundleName = context.getApplication().getMessageBundle(); Locale locale = context.getViewRoot().getLocale(); if ( (null != objectDocumentUidInput) && StringUtils.isNotBlank((String) objectDocumentUidInput.getLocalValue()) ) { return; } msg = I18NUtils.getMessageString(bundleName, "acaren.dafpic.title.create.relation.training.error.required.object.document", null, locale); message = new FacesMessage(msg); message.setSeverity(FacesMessage.SEVERITY_ERROR); throw new ValidatorException(message); }