public Class<?> invoke() { return getNotNullValueBinding().getType(getFacesContext(context)); } });
public Class<?> invoke() { return getNotNullValueBinding().getType(getFacesContext(context)); } });
public Class<?> invoke() { return getNotNullValueBinding().getType(getFacesContext(context)); } });
public Class<?> invoke() { return getNotNullValueBinding().getType(getFacesContext(context)); } });
public Class<?> invoke() { return getNotNullValueBinding().getType(getFacesContext(context)); } });
public Class getType(FacesContext facesContext) throws EvaluationException, PropertyNotFoundException { return wrapped.getType(facesContext); }
public Class<?> invoke() { return getNotNullValueBinding().getType(getFacesContext(context)); } });
public Class<?> getExpectedType(final FacesContext context, final String expression) throws ELException { ValueBinding valueBinding = context.getApplication().createValueBinding(expression); return valueBinding.getType(context); } }
protected static Object getDummyData(FacesContext context, ValueBinding vb) { Class type = null; try { type = vb.getType(context); } catch (EvaluationException e) { // FIXME - workaround for [6371691] that should be reconsidered, // as swallowing exceptions is not a good general practice type = Object.class; } return getDummyData(type); }
protected static Object getDummyData(FacesContext context, ValueBinding vb) { Class type = null; try { type = vb.getType(context); } catch (EvaluationException e) { // FIXME - workaround for [6371691] that should be reconsidered, // as swallowing exceptions is not a good general practice type = Object.class; } return getDummyData(type); }
public Class<?> getType(ELContext context) throws ELException { assert (null != binding); if (context == null) { throw new NullPointerException("ELContext -> null"); } Class result = null; FacesContext facesContext = (FacesContext) context.getContext(FacesContext.class); assert (null != facesContext); try { result = binding.getType(facesContext); } catch (Throwable e) { throw new ELException(e); } return result; }
public Class<?> getType(ELContext context) throws ELException { assert(null != binding); if (context == null) { throw new NullPointerException("ELContext -> null"); } Class result = null; FacesContext facesContext = (FacesContext) context.getContext(FacesContext.class); assert(null != facesContext); try { result = binding.getType(facesContext); } catch (Throwable e) { throw new ELException(e); } return result; }
public Class<?> getType(ELContext context) throws ELException { assert (null != binding); if (context == null) { throw new NullPointerException("ELContext -> null"); } Class result = null; FacesContext facesContext = (FacesContext) context.getContext(FacesContext.class); assert (null != facesContext); try { result = binding.getType(facesContext); } catch (Throwable e) { throw new ELException(e); } return result; }
public static Class getValueBindingType(UIComponent component, String bindingName) { ValueBinding vb = component.getValueBinding(bindingName); return (vb != null) ? vb.getType(component.getFacesContext()) : null; }
public Class<?> getType(ELContext context) throws ELException { assert(null != binding); if (context == null) { throw new NullPointerException("ELContext -> null"); } Class result = null; FacesContext facesContext = (FacesContext) context.getContext(FacesContext.class); assert(null != facesContext); try { result = binding.getType(facesContext); } catch (Throwable e) { throw new ELException(e); } return result; }
public Class<?> getType(ELContext context) throws ELException { assert(null != binding); if (context == null) { throw new NullPointerException("ELContext -> null"); } Class result = null; FacesContext facesContext = (FacesContext) context.getContext(FacesContext.class); assert(null != facesContext); try { result = binding.getType(facesContext); } catch (Throwable e) { throw new ELException(e); } return result; }
public boolean equals(Object other) { if (other == this) { return true; } if (other instanceof ValueExpressionValueBindingAdapter) { ValueBinding vb = ((ValueExpressionValueBindingAdapter) other).getWrapped(); return (binding.equals(vb)); } else if (other instanceof ValueExpression) { FacesContext context = FacesContext.getCurrentInstance(); ValueExpression otherVE = (ValueExpression) other; Class type = binding.getType(context); if (type != null) { return type.equals(otherVE.getType(context.getELContext())); } } return false; }
public void setValue(final FacesContext context, final String expression, final Object value) throws ELException { ValueBinding valueBinding = context.getApplication().createValueBinding(expression); Class<?> type = valueBinding.getType(context); Converter converter = ConvertUtils.lookup(type); if (converter == null) { throw new UnsupportedOperationException("Cant deal with " + type); } valueBinding.setValue(context, converter.convert(type, value)); }
public boolean equals(Object other) { if (other == this) { return true; } if (other instanceof ValueBindingValueExpressionAdapter) { ValueExpression expr = ((ValueBindingValueExpressionAdapter) other).getWrapped(); return (valueExpression.equals(expr)); } else if (other instanceof ValueBinding) { FacesContext context = FacesContext.getCurrentInstance(); ValueBinding otherVB = (ValueBinding) other; Class type = otherVB.getType(context); if (type != null) { return type.equals(valueExpression.getType(context.getELContext())); } } return false; }
public boolean equals(Object other) { if (other == this) { return true; } if (other instanceof ValueBindingValueExpressionAdapter) { ValueExpression expr = ((ValueBindingValueExpressionAdapter) other).getWrapped(); return (valueExpression.equals(expr)); } else if (other instanceof ValueBinding) { FacesContext context = FacesContext.getCurrentInstance(); ValueBinding otherVB = (ValueBinding) other; Class type = otherVB.getType(context); if (type != null) { return type.equals(valueExpression.getType(context.getELContext())); } } return false; }