Examples of PropertyNotFoundException


Examples of javax.faces.el.PropertyNotFoundException

            getPropertyDescriptor(base, name);

        Method m = propertyDescriptor.getReadMethod();
        if (m == null)
        {
            throw new PropertyNotFoundException(
                "Bean: " + base.getClass().getName() + ", property: " + name);
        }

        // Check if the concrete class of this method is accessible and if not
        // search for a public interface that declares this method
        m = MethodUtils.getAccessibleMethod(m);
        if (m == null)
        {
            throw new PropertyNotFoundException(
                "Bean: " + base.getClass().getName() + ", property: " + name + " (not accessible!)");
        }

        try
        {
View Full Code Here

Examples of javax.faces.el.PropertyNotFoundException

                getPropertyDescriptor(
                    Introspector.getBeanInfo(base.getClass()), name);
        }
        catch (IntrospectionException e)
        {
            throw new PropertyNotFoundException("Bean: "
                + base.getClass().getName() + ", property: " + name, e);
        }

        return propertyDescriptor;
    }
View Full Code Here

Examples of javax.faces.el.PropertyNotFoundException

                if (propDescriptors[i].getName().equals(propertyName))
                    return propDescriptors[i];
            }
        }

        throw new PropertyNotFoundException("Bean: "
            + beanInfo.getBeanDescriptor().getBeanClass().getName()
            + ", property: " + propertyName);
    }
View Full Code Here

Examples of javax.faces.el.PropertyNotFoundException

  }

  @Override
  public void setValue(FacesContext context, Object value)
  {
    throw new PropertyNotFoundException("Can't set value");
  }
View Full Code Here

Examples of javax.faces.el.PropertyNotFoundException

  public Class<?> getType(FacesContext context) throws EvaluationException,
      PropertyNotFoundException {
    try {
      return expression.getType(context.getELContext());
    } catch (javax.el.PropertyNotFoundException e) {
      throw new PropertyNotFoundException(e);
    } catch (ELException e) {
      throw new EvaluationException(e);
    }
  }
View Full Code Here

Examples of javax.faces.el.PropertyNotFoundException

  public Object getValue(FacesContext context) throws EvaluationException,
      PropertyNotFoundException {
    try {
      return expression.getValue(context.getELContext());
    } catch(javax.el.PropertyNotFoundException e) {
      throw new PropertyNotFoundException(e);
    } catch (ELException e) {
      throw new EvaluationException(e);
    }
  }
View Full Code Here

Examples of javax.faces.el.PropertyNotFoundException

  public boolean isReadOnly(FacesContext context) throws EvaluationException,
      PropertyNotFoundException {
    try {
      return expression.isReadOnly(context.getELContext());
    } catch(javax.el.PropertyNotFoundException e) {
      throw new PropertyNotFoundException(e);
    } catch (ELException e) {
      throw new EvaluationException(e);
    }
  }
View Full Code Here

Examples of javax.faces.el.PropertyNotFoundException

      throws EvaluationException, PropertyNotFoundException {
   
    try {
      expression.setValue(context.getELContext(), value);
    } catch(javax.el.PropertyNotFoundException e) {
      throw new PropertyNotFoundException(e);
    } catch (ELException e) {
      throw new EvaluationException(e);
    }
   
  }
View Full Code Here

Examples of org.activiti.engine.impl.javax.el.PropertyNotFoundException

      return null;
    }
    context.setPropertyResolved(false);
    Object result = context.getELResolver().getValue(context, base, property);
    if (!context.isPropertyResolved()) {
      throw new PropertyNotFoundException(LocalMessages.get("error.property.property.notfound", property, base));
    }
    return result;
  }
View Full Code Here

Examples of org.apache.cxf.jaxrs.ext.search.PropertyNotFoundException

            if (castedValue != null) {
                return new Comparison(name, operator, castedValue);
            } else if (MessageUtils.isTrue(contextProperties.get(SearchUtils.LAX_PROPERTY_MATCH))) {
                return null;
            } else {
                throw new PropertyNotFoundException(name, value);
            }
        } else {
            throw new SearchParseException("Not a comparison expression: " + expr);
        }
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.