Package javax.el

Examples of javax.el.PropertyNotWritableException


  }

  public void setValue(ELContext elContext, Object base, Object property, Object value) {
    if (base instanceof Action) {
      elContext.setPropertyResolved(true);
      throw new PropertyNotWritableException("The Action cannot be set with an expression.");
    }
  }
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

        if (base == null && property != null) {
            int idx = Arrays.binarySearch(SCOPE_NAMES, property.toString());
            if (idx >= 0) {
                context.setPropertyResolved(true);
                throw new PropertyNotWritableException();
            }
        }
    }
View Full Code Here

        }

        /** Does nothing. Always throws PropertyNotWritableException. */
        @Override
        public void setValue(ELContext elContext, Object o, Object o1, Object o2) throws PropertyNotWritableException {
            throw new PropertyNotWritableException("Unsupported Op");
        }
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 null;
  }

  @Override
  public void setValue(ELContext context, Object value) {
    throw new PropertyNotWritableException();
  }
View Full Code Here

    return Hacks.methodExpressionToStaticMethod(context, methodExpression);
  }

  @Override
  public void setValue(ELContext context, Object value) {
    throw new PropertyNotWritableException();
  }
View Full Code Here

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

        if (index < 0) {
            return;
        }
        switch (index) {
            case FACES_CONTEXT:
                throw new PropertyNotWritableException(MessageUtils.getExceptionMessageString
                (MessageUtils.OBJECT_IS_READONLY, "facesContext"));
            case VIEW:
                throw new PropertyNotWritableException(MessageUtils.getExceptionMessageString
                (MessageUtils.OBJECT_IS_READONLY, "view"));
            default:
        }
    }
View Full Code Here

        if (null != result) {
            context.setPropertyResolved(true);
            message = MessageUtils.getExceptionMessageString
                (MessageUtils.OBJECT_IS_READONLY);
            message = message + " base " + base + " property " + property;
            throw new PropertyNotWritableException(message);
        }       
       

    }
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.