Package javax.el

Examples of javax.el.PropertyNotWritableException


  }

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


            } else if ("pagenumber".equals(propertyName)) {
                result = Integer.class;
            } else if ("unlimited".equals(propertyName)) {
                result = Boolean.class;
            } else {
                throw new PropertyNotWritableException(
                    "Only the pageSize and pageNumber properties of a PageControl object can be resolved");
            }

            context.setPropertyResolved(true);
        }
View Full Code Here

      return _o;
    }

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

            throw new NullPointerException();
        }

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

        if (!context.isPropertyResolved()) {
            getDefaultResolver().setValue(context, base, property, 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

  }

  public void setValue(ELContext elContext, Object base, Object property, Object value) {
    if (base == null && REQUEST_CONTEXT_VARIABLE_NAME.equals(property)) {
      elContext.setPropertyResolved(true);
      throw new PropertyNotWritableException("The RequestContext cannot be set with an expression.");
    }
  }
View Full Code Here

    if (base != null || requestContext == null) {
      return;
    }
    if (ImplicitVariables.matches(property)) {
      context.setPropertyResolved(true);
      throw new PropertyNotWritableException("The implicit flow variable " + property + " is not writable.");
    }
  }
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

    RequestContext requestContext = getRequestContext();
    if (requestContext == null) {
      return;
    }
    if (base == null && RESOURCE_BUNDLE_KEY.equals(property)) {
      throw new PropertyNotWritableException("The '" + RESOURCE_BUNDLE_KEY
          + "' implicit variable is not writable.");
    } else if (base instanceof MessageSource) {
      throw new PropertyNotWritableException("The flow's MessageSource is not writable.");
    }
  }
View Full Code Here

  }

  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

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.