Object property) { context.setPropertyResolved(false); value = elResolvers[i].getValue(context, base, property); if (context.isPropertyResolved()) { return value;
Object val) { context.setPropertyResolved(false); elResolvers[i].setValue(context, base, property, val); if (context.isPropertyResolved()) { return;
Object property) { context.setPropertyResolved(false); type = elResolvers[i].getType(context, base, property); if (context.isPropertyResolved()) { return type;
/** * @see Faces#resolveExpressionGet(Object, String) */ @SuppressWarnings("unchecked") public static <T> T resolveExpressionGet(FacesContext context, Object base, String property) { ELResolver elResolver = context.getApplication().getELResolver(); return (T) elResolver.getValue(context.getELContext(), base, property); }
public void setValue(ELContext context, Object value) { Object base = this.orig.getValue(context); if (base != null) { context.setPropertyResolved(false); context.getELResolver().setValue(context, base, i, value); } }
@Override public Object eval(Bindings bindings, ELContext context) { ValueExpression expression = bindings.getVariable(index); if (expression != null) { return expression.getValue(context); } context.setPropertyResolved(false); Object result = context.getELResolver().getValue(context, null, name); if (!context.isPropertyResolved()) { throw new PropertyNotFoundException(LocalMessages.get("error.identifier.property.notfound", name)); } return result; }
public boolean isReadOnly(Object base, Object property) { if (delegate != null) { return delegate.isReadOnly(base, property); } try { FacesContext context = FacesContext.getCurrentInstance(); return context.getApplication().getELResolver().isReadOnly(context.getELContext(), base,property); } catch (ELException elex) { throw new EvaluationException(elex); } }
@Override public Object getValue(ELContext context, Object base, Object property) { Objects.requireNonNull(context); if (base == null) { context.setPropertyResolved(base, property); if (property != null) { try { return this.variableResolver.resolveVariable(property .toString()); } catch (javax.servlet.jsp.el.ELException e) { throw new ELException(e.getMessage(), e.getCause()); } } } if (!context.isPropertyResolved()) { return elResolver.getValue(context, base, property); } return null; }
@Override public Class<?> getType(ELContext context, Object base, Object property) { Objects.requireNonNull(context); if (base == null) { context.setPropertyResolved(base, property); if (property != null) { try { Object obj = this.variableResolver.resolveVariable(property .toString()); return (obj != null) ? obj.getClass() : null; } catch (javax.servlet.jsp.el.ELException e) { throw new ELException(e.getMessage(), e.getCause()); } } } if (!context.isPropertyResolved()) { return elResolver.getType(context, base, property); } return null; }
public Class getType(ELContext context) { Object base = this.orig.getValue(context); if (base != null) { context.setPropertyResolved(false); return context.getELResolver().getType(context, base, i); } return null; }
public boolean isReadOnly(ELContext context) { Object base = this.orig.getValue(context); if (base != null) { context.setPropertyResolved(false); return context.getELResolver().isReadOnly(context, base, i); } return true; }
public Class<?> getType(Bindings bindings, ELContext context) { ValueExpression expression = bindings.getVariable(index); if (expression != null) { return expression.getType(context); } context.setPropertyResolved(false); Class<?> result = context.getELResolver().getType(context, null, name); if (!context.isPropertyResolved()) { throw new PropertyNotFoundException(LocalMessages.get("error.identifier.property.notfound", name)); } return result; }
public boolean isReadOnly(Bindings bindings, ELContext context) { ValueExpression expression = bindings.getVariable(index); if (expression != null) { return expression.isReadOnly(context); } context.setPropertyResolved(false); boolean result = context.getELResolver().isReadOnly(context, null, name); if (!context.isPropertyResolved()) { throw new PropertyNotFoundException(LocalMessages.get("error.identifier.property.notfound", name)); } return result; }
public Object getValue(EvaluationContext ctx) throws ELException { VariableMapper varMapper = ctx.getVariableMapper(); if (varMapper != null) { ValueExpression expr = varMapper.resolveVariable(this.image); if (expr != null) { return expr.getValue(ctx.getELContext()); } } ctx.setPropertyResolved(false); return ctx.getELResolver().getValue(ctx, null, this.image); }
public void setValue(Bindings bindings, ELContext context, Object value) { ValueExpression expression = bindings.getVariable(index); if (expression != null) { expression.setValue(context, value); return; } context.setPropertyResolved(false); Class<?> type = context.getELResolver().getType(context, null, name); if (context.isPropertyResolved()) { if (type != null && (value != null || type.isPrimitive())) { value = bindings.convert(value, type); } context.setPropertyResolved(false); } context.getELResolver().setValue(context, null, name, value); if (!context.isPropertyResolved()) { throw new PropertyNotFoundException(LocalMessages.get("error.identifier.property.notfound", name)); } }
public Object getValue(ELContext context) { Object base = this.orig.getValue(context); if (base != null) { context.setPropertyResolved(false); return context.getELResolver().getValue(context, base, i); } return null; }
@Override public Object getValue(EvaluationContext ctx) throws ELException { VariableMapper varMapper = ctx.getVariableMapper(); if (varMapper != null) { ValueExpression expr = varMapper.resolveVariable(this.image); if (expr != null) { return expr.getValue(ctx.getELContext()); } } ctx.setPropertyResolved(false); Object result = ctx.getELResolver().getValue(ctx, null, this.image); if (!ctx.isPropertyResolved()) { throw new PropertyNotFoundException(MESSAGES.errorNullBaseObject(this.image)); } return result; }
/** * @see Faces#resolveExpressionSet(Object, String, Object) */ public static void resolveExpressionSet(FacesContext context, Object base, String property, Object value) { ELResolver elResolver = context.getApplication().getELResolver(); elResolver.setValue(context.getELContext(), base, property, value); }
Object property) { context.setPropertyResolved(false); readOnly = elResolvers[i].isReadOnly(context, base, property); if (context.isPropertyResolved()) { return readOnly;
@Override public Object getValue(ELContext context, Object base, Object property) { context.setPropertyResolved(true); valueReference = new ValueReference(base, property.toString()); return delegate.getValue(context, base, property); }