Example #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);
        }