Package javax.el

Examples of javax.el.PropertyNotWritableException


        if (!(property instanceof String)) return;
       
        ResourceBundle bundle = getResourceBundle(context, (String)property);
       
        if (bundle != null) {
            throw new PropertyNotWritableException("ResourceBundles are read-only");
        }
    }
View Full Code Here


        String strProperty = property.toString();

        if (FLASH.equals(strProperty))
        {
            throw new PropertyNotWritableException();
        }
        else if (base instanceof Flash)
        {
            context.setPropertyResolved(true);
            try
            {
                ((Flash) base).put(strProperty, value);
            }
            catch (UnsupportedOperationException e)
            {
                throw new PropertyNotWritableException(e);
            }
        }
    }
View Full Code Here

      throw new NullPointerException();
    }

    if (base == null) {
      context.setPropertyResolved(true);
      throw new PropertyNotWritableException(
          "Legacy VariableResolver wrapped, not writable");
    }

    if (!context.isPropertyResolved()) {
      DefaultResolver.setValue(context, base, property, value);
View Full Code Here

        String strProperty = property.toString();

        if (FLASH.equals(strProperty))
        {
            throw new PropertyNotWritableException();
        }
        else if (base instanceof Flash)
        {
            context.setPropertyResolved(true);
            try
            {
                ((Flash) base).put(strProperty, value);
            }
            catch (UnsupportedOperationException e)
            {
                throw new PropertyNotWritableException(e);
            }
        }
    }
View Full Code Here

        return true;
    }

    public void setValue(EvaluationContext ctx, Object value)
            throws ELException {
        throw new PropertyNotWritableException(MessageFactory.get("error.syntax.set"));
    }
View Full Code Here

        }
        return this.value;
    }

    public void setValue(ELContext context, Object value) {
        throw new PropertyNotWritableException(MessageFactory.get(
                "error.value.literal.write", this.value));
    }
View Full Code Here

        return true;
    }

    public void setValue(EvaluationContext ctx, Object value)
            throws ELException {
        throw new PropertyNotWritableException(MessageFactory.get("error.syntax.set"));
    }
View Full Code Here

            throw MESSAGES.elResolverNullContext();
        }

        if (base == null) {
            context.setPropertyResolved(true);
            throw new PropertyNotWritableException(MESSAGES.legacyVariableResolver());
        }

        if (!context.isPropertyResolved()) {
            getDefaultResolver().setValue(context, base, property, value);
        }
View Full Code Here

                "paramValues".equals (property) ||
                "header".equals (property) ||
                "headerValues".equals (property) ||
                "initParam".equals (property) ||
                "cookie".equals (property)) {
            throw new PropertyNotWritableException();
        }
    }
View Full Code Here

    public void setValue(ELContext context, Object base, Object property, Object value) {
        if (context == null) {
            throw new NullPointerException("context is null");
        }
        if (isResolvable(base)) {
            throw new PropertyNotWritableException("resolver is read-only");
        }
    }
View Full Code Here

TOP

Related Classes of javax.el.PropertyNotWritableException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.