public static ValueExpression unwrapCompositeComponentReference(ValueReference vr) { return ((CompositeComponentExpressionHolder) vr.getBase()).getExpression((String) vr.getProperty()); }
ValueBinding vb = context.getApplication().createValueBinding("#{data}"); BindingContext bc = (BindingContext) vb.getValue(context);
public void setValue(Object base, int index, Object value) throws EvaluationException, PropertyNotFoundException { if (base instanceof FlowExecution) { throw new ReferenceSyntaxException("Cannot apply an index value to a flow execution"); } else { resolverDelegate.setValue(base, index, value); } }
public static String invoke(MethodBinding methodBinding, FacesContext context) { try { return (String) methodBinding.invoke(context, null); } catch (EvaluationException e) { Throwable cause = e.getCause(); if (cause != null && cause instanceof AbortProcessingException) { throw (AbortProcessingException) cause; } throw e; } } }
@Override public String getExpressionString() { return methodBinding.getExpressionString(); }
public String getExpressionString() { assert(null != binding); return binding.getExpressionString(); }
public Object invoke() { return methodBinding.invoke(facesContext, params); } });
public Object invoke() { getNotNullValueBinding().setValue(getFacesContext(context), value); return null; } });
public Object getValue(Object base, int index) throws EvaluationException, PropertyNotFoundException { if (base instanceof FlowExecution) { throw new ReferenceSyntaxException("Cannot apply an index value to a flow execution"); } else { return resolverDelegate.getValue(base, index); } }
public Boolean invoke() { return getNotNullValueBinding().isReadOnly(getFacesContext(context)); } });
public Class<?> invoke() { return getNotNullValueBinding().getType(getFacesContext(context)); } });
public Class getType(Object base, int index) throws EvaluationException, PropertyNotFoundException { if (base instanceof FlowExecution) { // cannot access flow execution by index so we cannot determine type; return null per JSF spec return null; } else { return resolverDelegate.getType(base, index); } }
public boolean isReadOnly(Object base, int index) throws EvaluationException, PropertyNotFoundException { if (base instanceof FlowExecution) { return false; } else { return resolverDelegate.isReadOnly(base, index); } }
ValueBinding vb = FacesContext.getCurrentInstance().getApplication().createValueBinding("#{javascript:getData()}"); System.out.println(vb.getValue(FacesContext.getCurrentInstance()).toString());
public String getExpressionString() { if (original == null) { return null; } return original.getExpressionString(); }
public Boolean invoke() { return getNotNullValueBinding().isReadOnly(getFacesContext(context)); } });
public Object invoke() { return getNotNullValueBinding().getValue(getFacesContext(context)); } });
@Override public String getExpressionString() { return methodBinding.getExpressionString(); }
public Object invoke() { return getNotNullValueBinding().getValue(getFacesContext(context)); } });