/** * @deprecated Use getValueExpression instead */ public ValueBinding getValueBinding(String name) { if (name == null) throw new NullPointerException("name"); if (name.equals("selected")) { return super.getValueBinding("value"); } else { return super.getValueBinding(name); } }
/** * <p>Return any {@link ValueBinding} set for <code>value</code> if a * {@link ValueBinding} for <code>selected</code> is requested; otherwise, * perform the default superclass processing for this method.</p> * * <p>Rely on the superclass implementation to wrap the returned * <code>ValueExpression</code> in a <code>ValueBinding</code>.</p> * * @param name Name of the attribute or property for which to retrieve * a {@link ValueBinding} * * @throws NullPointerException if <code>name</code> * is <code>null</code> * * @deprecated This has been replaced by {@link * #getValueExpression}. */ public ValueBinding getValueBinding(String name) { if ("selected".equals(name)) { return (super.getValueBinding("value")); } else { return (super.getValueBinding(name)); } }
/** * <p>Return any {@link ValueBinding} set for <code>value</code> if a * {@link ValueBinding} for <code>selected</code> is requested; otherwise, * perform the default superclass processing for this method.</p> * * <p>Rely on the superclass implementation to wrap the returned * <code>ValueExpression</code> in a <code>ValueBinding</code>.</p> * * @param name Name of the attribute or property for which to retrieve * a {@link ValueBinding} * * @throws NullPointerException if <code>name</code> * is <code>null</code> * * @deprecated This has been replaced by {@link * #getValueExpression}. */ public ValueBinding getValueBinding(String name) { if ("selected".equals(name)) { return (super.getValueBinding("value")); } else { return (super.getValueBinding(name)); } }
/** * <p>Return any {@link ValueBinding} set for <code>value</code> if * a {@link ValueBinding} for <code>selectedValues</code> is * requested; otherwise, perform the default superclass processing * for this method.</p> * * <p>This method relies on the superclass to provide the * <code>ValueExpression</code> to <code>ValueBinding</code> * wrapping.</p> * * @param name Name of the attribute or property for which to retrieve * a {@link ValueBinding} * * @throws NullPointerException if <code>name</code> * is <code>null</code> * * @deprecated this has been replaced by {@link #getValueExpression(java.lang.String)}. */ public ValueBinding getValueBinding(String name) { if ("selectedValues".equals(name)) { return (super.getValueBinding("value")); } else { return (super.getValueBinding(name)); } }
/** * <p>Return any {@link ValueBinding} set for <code>value</code> if * a {@link ValueBinding} for <code>selectedValues</code> is * requested; otherwise, perform the default superclass processing * for this method.</p> * * <p>This method relies on the superclass to provide the * <code>ValueExpression</code> to <code>ValueBinding</code> * wrapping.</p> * * @param name Name of the attribute or property for which to retrieve * a {@link ValueBinding} * @return the value binding, or <code>null</code> * @throws NullPointerException if <code>name</code> * is <code>null</code> * * @deprecated this has been replaced by {@link #getValueExpression(java.lang.String)}. */ @Override public ValueBinding getValueBinding(String name) { if ("selectedValues".equals(name)) { return (super.getValueBinding("value")); } else { return (super.getValueBinding(name)); } }
/** * <p>Return any {@link ValueBinding} set for <code>value</code> if * a {@link ValueBinding} for <code>selectedValues</code> is * requested; otherwise, perform the default superclass processing * for this method.</p> * * <p>This method relies on the superclass to provide the * <code>ValueExpression</code> to <code>ValueBinding</code> * wrapping.</p> * * @param name Name of the attribute or property for which to retrieve * a {@link ValueBinding} * @return the value binding, or <code>null</code> * @throws NullPointerException if <code>name</code> * is <code>null</code> * * @deprecated this has been replaced by {@link #getValueExpression(java.lang.String)}. */ @Override public ValueBinding getValueBinding(String name) { if ("selectedValues".equals(name)) { return (super.getValueBinding("value")); } else { return (super.getValueBinding(name)); } }
/** * <p>Return any {@link ValueBinding} set for <code>value</code> if a * {@link ValueBinding} for <code>selected</code> is requested; otherwise, * perform the default superclass processing for this method.</p> * * <p>Rely on the superclass implementation to wrap the returned * <code>ValueExpression</code> in a <code>ValueBinding</code>.</p> * * @param name Name of the attribute or property for which to retrieve * a {@link ValueBinding} * * @throws NullPointerException if <code>name</code> * is <code>null</code> * * @deprecated This has been replaced by {@link * #getValueExpression}. */ public ValueBinding getValueBinding(String name) { if ("selected".equals(name)) { return (super.getValueBinding("value")); } else { return (super.getValueBinding(name)); } }
/** * <p>Return any {@link ValueBinding} set for <code>value</code> if a * {@link ValueBinding} for <code>selected</code> is requested; otherwise, * perform the default superclass processing for this method.</p> * * <p>Rely on the superclass implementation to wrap the returned * <code>ValueExpression</code> in a <code>ValueBinding</code>.</p> * * @param name Name of the attribute or property for which to retrieve * a {@link ValueBinding} * * @throws NullPointerException if <code>name</code> * is <code>null</code> * * @deprecated This has been replaced by {@link * #getValueExpression}. */ @Override public ValueBinding getValueBinding(String name) { if ("selected".equals(name)) { return (super.getValueBinding("value")); } else { return (super.getValueBinding(name)); } }
/** * @deprecated Use getValueExpression instead */ public ValueBinding getValueBinding(String name) { if (name == null) { throw new NullPointerException("name"); } if (name.equals("selectedValues")) { return super.getValueBinding("value"); } else { return super.getValueBinding(name); } }
/** * <p>Return any {@link ValueBinding} set for <code>value</code> if * a {@link ValueBinding} for <code>selectedValues</code> is * requested; otherwise, perform the default superclass processing * for this method.</p> * * <p>This method relies on the superclass to provide the * <code>ValueExpression</code> to <code>ValueBinding</code> * wrapping.</p> * * @param name Name of the attribute or property for which to retrieve * a {@link ValueBinding} * * @throws NullPointerException if <code>name</code> * is <code>null</code> * * @deprecated this has been replaced by {@link #getValueExpression(java.lang.String)}. */ public ValueBinding getValueBinding(String name) { if ("selectedValues".equals(name)) { return (super.getValueBinding("value")); } else { return (super.getValueBinding(name)); } }
/** * <p>Return any {@link ValueBinding} set for <code>value</code> if a * {@link ValueBinding} for <code>selected</code> is requested; otherwise, * perform the default superclass processing for this method.</p> * * <p>Rely on the superclass implementation to wrap the returned * <code>ValueExpression</code> in a <code>ValueBinding</code>.</p> * * @param name Name of the attribute or property for which to retrieve * a {@link ValueBinding} * * @throws NullPointerException if <code>name</code> * is <code>null</code> * * @deprecated This has been replaced by {@link * #getValueExpression}. */ @Override public ValueBinding getValueBinding(String name) { if ("selected".equals(name)) { return (super.getValueBinding("value")); } else { return (super.getValueBinding(name)); } }
/** * @deprecated Use getValueExpression instead */ @Override public ValueBinding getValueBinding(String name) { if (name == null) { throw new NullPointerException("name"); } if (name.equals("selected")) { return super.getValueBinding("value"); } else { return super.getValueBinding(name); } }
/** * @deprecated Use getValueExpression instead */ @Override public ValueBinding getValueBinding(String name) { if (name == null) { throw new NullPointerException("name"); } if (name.equals("selectedValues")) { return super.getValueBinding("value"); } else { return super.getValueBinding(name); } }
@Override @SuppressWarnings("deprecation") public javax.faces.el.ValueBinding getValueBinding(String name) { return getWrapped().getValueBinding(name); }
@Override @SuppressWarnings("deprecation") public javax.faces.el.ValueBinding getValueBinding(String name) { return getWrapped().getValueBinding(name); }
public ValueBinding getValueBinding(String name) { return super.getValueBinding(convertAlias(name)); }
public ValueBinding getValueBinding(String name) { return super.getValueBinding(convertAlias(name)); }
protected Object convertFromAnnotation(FacesContext context, Object submittedValue) { ValueBinding vb = getValueBinding("value"); if (vb != null) { String expression = vb.getExpressionString(); Converter converter = ConverterResource.getConverter(expression); if (converter != null) { return converter .getAsObject( context, this, (submittedValue instanceof String) ? (String) submittedValue : null); } } return null; }
public void updateModel(FacesContext context) { AssertionUtil.assertNotNull("context", context); if (!isValid() || !isLocalValueSet()) { return; } final ValueBinding valueBinding = getValueBinding("value"); if (valueBinding == null) { return; } try { final Object localValue = getLocalValue(); valueBinding.setValue(context, localValue); setValue(null); setLocalValueSet(false); } catch (RuntimeException e) { Object[] args = { UIComponentUtil.getLabel(this) }; context.getExternalContext().log(e.getMessage(), e); FacesMessageUtil.addErrorComponentMessage(context, this, CONVERSION_MESSAGE_ID, args); setValid(false); } }
protected void validateForExtension(FacesContext context, Object value) { Validator validator = null; final ValidatorLookupStrategy strategy = ValidatorLookupStrategyUtil .getValidatorLookupStrategy(); if (strategy != null) { validator = strategy.findValidator(context, this, value); } else { ValueBinding vb = this.getValueBinding("value"); if (vb != null) { String expression = vb.getExpressionString(); validator = ValidatorResource.getValidator(expression); } } if (validator == null) { return; } try { validator.validate(context, this, value); } catch (ValidatorException e) { handleValidationException(context, e); } }