Package javax.el

Examples of javax.el.PropertyNotFoundException


   */
  @Override
  public Class<?> getType(ELContext context, Object base, Object property) {
    if (null != base && base instanceof State) {
          if (property == null) {
              throw new PropertyNotFoundException("Null property");
           }
        State state = (State)base;
        Object stateProperty = state.get(property.toString());
          if (stateProperty == null) {
              throw new PropertyNotFoundException("State Property ["+property+"] not found ");
          }
          context.setPropertyResolved(true);
          if (stateProperty instanceof ValueExpression) {
        ValueExpression propertyExpression = (ValueExpression) stateProperty;
        FacesContext facesContext = FacesContext.getCurrentInstance();
View Full Code Here


   */
  @Override
  public Object getValue(final ELContext context, Object base, Object property) {
    if (null != base && base instanceof State) {
          if (property == null) {
              throw new PropertyNotFoundException("Null property");
           }
        State state = (State)base;
        Object stateProperty = state.get(property.toString());
          if (stateProperty == null) {
              throw new PropertyNotFoundException("State Property ["+property+"] not found ");
          }
          context.setPropertyResolved(true);
          if (stateProperty instanceof ValueExpression) {
        ValueExpression propertyExpression = (ValueExpression) stateProperty;
        FacesContext facesContext = FacesContext.getCurrentInstance();
View Full Code Here

   */
  @Override
  public boolean isReadOnly(ELContext context, Object base, Object property) {
    if (null != base && base instanceof State){
          if (property == null) {
              throw new PropertyNotFoundException("Null property");
           }
        State state = (State)base;
        Object stateProperty = state.get(property.toString());
          if (stateProperty == null) {
              throw new PropertyNotFoundException("State Property ["+property+"] not found ");
          }
          context.setPropertyResolved(true);
          return true;
    }
    return false;
View Full Code Here

  @Override
  public void setValue(ELContext context, Object base, Object property,
      Object value) {
    if (null != base && base instanceof State){
          if (property == null) {
              throw new PropertyNotFoundException("Null property");
           }
          throw new PropertyNotWritableException((String) property);
    }
  }
View Full Code Here

    public Class getType(ELContext context) {
        try {
            return this.orig.getType(context);
        } catch (PropertyNotFoundException pnfe) {
            throw new PropertyNotFoundException(this.attr + ": "
                    + pnfe.getMessage(), pnfe.getCause());
        } catch (ELException e) {
            throw new ELException(this.attr + ": " + e.getMessage(), e.getCause());
        }
    }
View Full Code Here

    public Object getValue(ELContext context) {
        try {
            return this.orig.getValue(context);
        } catch (PropertyNotFoundException pnfe) {
            throw new PropertyNotFoundException(this.attr + ": "
                    + pnfe.getMessage(), pnfe.getCause());
        } catch (ELException e) {
            throw new ELException(this.attr + ": " + e.getMessage(), e.getCause());
        }
    }
View Full Code Here

    public boolean isReadOnly(ELContext context) {
        try {
            return this.orig.isReadOnly(context);
        } catch (PropertyNotFoundException pnfe) {
            throw new PropertyNotFoundException(this.attr + ": "
                    + pnfe.getMessage(), pnfe.getCause());
        } catch (ELException e) {
            throw new ELException(this.attr + ": " + e.getMessage(), e.getCause());
        }
    }
View Full Code Here

    public void setValue(ELContext context, Object value) {
        try {
            this.orig.setValue(context, value);
        } catch (PropertyNotFoundException pnfe) {
            throw new PropertyNotFoundException(this.attr + ": "
                    + pnfe.getMessage(), pnfe.getCause());
        } catch (PropertyNotWritableException pnwe) {
            throw new PropertyNotWritableException(this.attr + ": "
                    + pnwe.getMessage(), pnwe.getCause());
        } catch (ELException e) {
View Full Code Here

    public MethodInfo getMethodInfo(ELContext context) {
        try {
            return this.orig.getMethodInfo(context);
        } catch (PropertyNotFoundException pnfe) {
            throw new PropertyNotFoundException(this.attr + ": " + pnfe.getMessage(), pnfe.getCause());
        } catch (MethodNotFoundException mnfe) {
            throw new MethodNotFoundException(this.attr + ": " + mnfe.getMessage(), mnfe.getCause());
        } catch (ELException e) {
            throw new ELException(this.attr + ": " + e.getMessage(), e.getCause());
        }
View Full Code Here

    public Object invoke(ELContext context, Object[] params) {
        try {
            return this.orig.invoke(context, params);
        } catch (PropertyNotFoundException pnfe) {
            throw new PropertyNotFoundException(this.attr + ": " + pnfe.getMessage(), pnfe.getCause());
        } catch (MethodNotFoundException mnfe) {
            throw new MethodNotFoundException(this.attr + ": " + mnfe.getMessage(), mnfe.getCause());
        } catch (ELException e) {
            throw new ELException(this.attr + ": " + e.getMessage(), e.getCause());
        }
View Full Code Here

TOP

Related Classes of javax.el.PropertyNotFoundException

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.