Exemplo n.º 1
0
        public override bool isReadOnly(Bindings bindings, ELContext context)
        {
            ValueExpression expression = bindings.getVariable(index);

            if (expression != null)
            {
                return(expression.isReadOnly(context));
            }
            context.PropertyResolved = false;
            bool result = context.ELResolver.isReadOnly(context, null, name);

            if (!context.PropertyResolved)
            {
                throw new PropertyNotFoundException(LocalMessages.get("error.identifier.property.notfound", name));
            }
            return(result);
        }