Package javax.el

Examples of javax.el.PropertyNotWritableException


        return this.value;
    }

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


  @Override
  public void setValue(ELContext context, Object base, Object property, Object value) throws NullPointerException, PropertyNotFoundException, PropertyNotWritableException, ELException {
    if (resolve(context, base)) {
      if (readOnly) {
        throw new PropertyNotWritableException("resolver is read only!");
      }
      map.put(property, value);
    } else {
      delegate.setValue(context, base, property, value);
    }
View Full Code Here

      context.setPropertyResolved(true);

      try {
        adapt(base).put(property, value);
      } catch (UnsupportedOperationException e) {
        throw new PropertyNotWritableException(e);
      }
    }
  }
View Full Code Here

      return null;
    }

    @Override
    public void setValue(ELContext context, Object base, Object property, Object value) {
      throw new PropertyNotWritableException();
    }
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

      {
        try
        {
          // If exception not thrown then we had a hit
          Enum.valueOf(BRIDGE_IMPLICT_OBJECTS_ENUM.class, (String) property);
          throw new PropertyNotWritableException((String) property);
        }
        catch (IllegalArgumentException e)
        {
          ; // do nothing
        }
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

        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

  public void setValue(ELContext elContext, Object base, Object property, Object value) throws ELException {
    if (base == null) {
      String beanName = property.toString();
      BeanFactory bf = getBeanFactory(elContext);
      if (bf.containsBean(beanName)) {
        throw new PropertyNotWritableException(
            "Variable '" + beanName + "' refers to a Spring bean which by definition is not writable");
      }
    }
  }
View Full Code Here

    }

    int index = Arrays.binarySearch(IMPLICIT_OBJECTS, property);
    if (index >= 0)
    {
      throw new PropertyNotWritableException((String) property);
    }
  }
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.