context.setPropertyResolved(false); for (int i = 0, l = resolvers.size(); i < l; i++) { boolean readOnly = resolvers.get(i).isReadOnly(context, base, property); if (context.isPropertyResolved()) { return readOnly;
@Override 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; }
@Override public boolean isReadOnly(Bindings bindings, ELContext context) throws ELException { if (!lvalue) { return true; } Object base = prefix.eval(bindings, context); if (base == null) { throw new PropertyNotFoundException(LocalMessages.get("error.property.base.null", prefix)); } Object property = getProperty(bindings, context); if (property == null && strict) { throw new PropertyNotFoundException(LocalMessages.get("error.property.property.notfound", "null", base)); } context.setPropertyResolved(false); boolean result = context.getELResolver().isReadOnly(context, base, property); if (!context.isPropertyResolved()) { throw new PropertyNotFoundException(LocalMessages.get("error.property.property.notfound", property, base)); } return result; }