javax.faces.el.PropertyNotFoundException类的使用及代码示例

x33g5p2x  于2022-01-26 转载在 其他  
字(8.6k)|赞(0)|评价(0)|浏览(154)

本文整理了Java中javax.faces.el.PropertyNotFoundException类的一些代码示例,展示了PropertyNotFoundException类的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。PropertyNotFoundException类的具体详情如下:
包路径:javax.faces.el.PropertyNotFoundException
类名称:PropertyNotFoundException

PropertyNotFoundException介绍

[英]An exception caused by a property name that cannot be resolved against a base object.
[中]由无法针对基础对象解析的属性名引起的异常。

代码示例

代码示例来源:origin: org.richfaces.ui.common/richfaces-ui-common-ui

@Override
public Object getValue(FacesContext context) throws EvaluationException {
  try {
    return expression.getValue(context.getELContext());
  } catch (javax.el.PropertyNotFoundException e) {
    throw new PropertyNotFoundException(e);
  } catch (ELException e) {
    throw new EvaluationException(e);
  }
}

代码示例来源:origin: org.apache.myfaces.core/myfaces-api

private <T> T invoke(Invoker<T> invoker)
{
  try
  {
    return invoker.invoke();
  }
  catch (javax.faces.el.PropertyNotFoundException e)
  {
    throw new PropertyNotFoundException(e.getMessage(), e);
  }
  catch (EvaluationException e)
  {
    throw new ELException(e.getMessage(), e);
  }
}

代码示例来源:origin: org.apache.myfaces/com.springsource.org.apache.myfaces

FacesContext.getCurrentInstance().getELContext().isPropertyResolved());
throw new PropertyNotFoundException(e.getMessage(), e);
throw new ELException(e.getMessage(), e);

代码示例来源:origin: com.sun.faces/jsf-impl

public Object getValue(FacesContext context) throws EvaluationException,
    PropertyNotFoundException {
  ELContext ctx = context.getELContext();
  try {
    return this.delegate.getValue(ctx);
  } catch (javax.el.PropertyNotFoundException e) {
    throw new PropertyNotFoundException(e.getMessage(), e.getCause());
  } catch (ELException e) {
    throw new EvaluationException(e.getMessage(), e.getCause());
  }
}

代码示例来源:origin: org.richfaces.ui/richfaces-components-ui

@Override
public void setValue(FacesContext context, Object value) throws EvaluationException {
  try {
    expression.setValue(context.getELContext(), value);
  } catch (javax.el.PropertyNotFoundException e) {
    throw new PropertyNotFoundException(e);
  } catch (ELException e) {
    throw new EvaluationException(e);
  }
}

代码示例来源:origin: com.sun.faces/jsf-impl

public Object getValue(Object base, Object property) {
  if (delegate != null) {
    return delegate.getValue(base, property);
  }
  try {
    FacesContext context = FacesContext.getCurrentInstance();
    return context.getApplication().getELResolver().getValue(context.getELContext(), base,property);
  } catch (javax.el.PropertyNotFoundException pnfe) {
    throw new PropertyNotFoundException(pnfe);
  } catch (ELException elex) {
    throw new EvaluationException(elex);
  }
}

代码示例来源:origin: com.sun.faces/jsf-impl

public boolean isReadOnly(ELContext context, Object base,
    Object property) {
  if (property == null) {
    return true;
  }
  try {
    context.setPropertyResolved(true);
    if (base == null) {
      return false; // what can I do?
    } else {
      if (base instanceof List || base.getClass().isArray()) {
        return this.getPropertyResolver().isReadOnly(base,
            Integer.parseInt(property.toString()));
      } else {
        return this.getPropertyResolver().isReadOnly(base,
            property);
      }
    }
  } catch (PropertyNotFoundException e) {
    throw new javax.el.PropertyNotFoundException(e.getMessage(), e
        .getCause());
  } catch (EvaluationException e) {
    throw new ELException(e.getMessage(), e.getCause());
  }
}

代码示例来源:origin: org.richfaces.ui.common/richfaces-ui-common-ui

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

代码示例来源:origin: com.sun.faces/jsf-impl

public Class getType(FacesContext context) throws EvaluationException,
    PropertyNotFoundException {
  ELContext ctx = context.getELContext();
  try {
    return this.delegate.getType(ctx);
  } catch (javax.el.PropertyNotFoundException e) {
    throw new PropertyNotFoundException(e.getMessage(), e.getCause());
  } catch (ELException e) {
    throw new EvaluationException(e.getMessage(), e.getCause());
  }
}

代码示例来源:origin: com.sun.faces/jsf-impl

public boolean isReadOnly(FacesContext context) throws EvaluationException,
    PropertyNotFoundException {
  ELContext ctx = context.getELContext();
  try {
    return this.delegate.isReadOnly(ctx);
  } catch (javax.el.PropertyNotFoundException e) {
    throw new PropertyNotFoundException(e.getMessage(), e.getCause());
  } catch (ELException e) {
    throw new EvaluationException(e.getMessage(), e.getCause());
  }
}

代码示例来源:origin: com.sun.faces/jsf-impl

public void setValue(FacesContext context, Object value)
    throws EvaluationException, PropertyNotFoundException {
  ELContext ctx = context.getELContext();
  try {
    this.delegate.setValue(ctx, value);
  } catch (PropertyNotWritableException e) {
    throw new PropertyNotFoundException(e.getMessage(), e.getCause());
  } catch (javax.el.PropertyNotFoundException e) {
    throw new PropertyNotFoundException(e.getMessage(), e.getCause());
  } catch (ELException e) {
    throw new EvaluationException(e.getMessage(), e.getCause());
  }
}

代码示例来源:origin: org.glassfish/javax.faces

@Override
public void setValue(FacesContext context, Object value)
    throws EvaluationException, PropertyNotFoundException {
  ELContext ctx = context.getELContext();
  try {
    this.delegate.setValue(ctx, value);
  } catch (PropertyNotWritableException | javax.el.PropertyNotFoundException e) {
    throw new PropertyNotFoundException(e.getMessage(), e.getCause());
  } catch (ELException e) {
    throw new EvaluationException(e.getMessage(), e.getCause());
  }
}

代码示例来源:origin: org.richfaces.ui/richfaces-components-ui

@Override
public boolean isReadOnly(FacesContext context) throws EvaluationException {
  try {
    return expression.isReadOnly(context.getELContext());
  } catch (javax.el.PropertyNotFoundException e) {
    throw new PropertyNotFoundException(e);
  } catch (ELException e) {
    throw new EvaluationException(e);
  }
}

代码示例来源:origin: org.apache.myfaces.core/myfaces-impl

<T> T invokeResolver(ResolverInvoker<T> invoker) throws EvaluationException, PropertyNotFoundException
{
  try
  {
    return invoker.invoke(getELResolver(), getELContext());
  }
  catch (javax.el.PropertyNotFoundException e)
  {
    throw new PropertyNotFoundException("property not found: " + invoker.getMessage() + ": " + e.getMessage(),
      e);
  }
  catch (ELException e)
  {
    throw new EvaluationException("exception: " + invoker.getMessage() + ": " + e.getMessage(), e);
  }
  catch (RuntimeException e)
  {
    throw new RuntimeException("runtime exception: " + invoker.getMessage() + ": " + e.getMessage(), e);
  }
}

代码示例来源:origin: org.apache.myfaces/com.springsource.org.apache.myfaces

public void setValue(Object base, int index, Object value) 
  throws EvaluationException, PropertyNotFoundException {
  
  try {
    elResolver.setValue(elContext(), base, new Integer(index), value);
  } catch (javax.el.PropertyNotFoundException e) {
    throw new javax.faces.el.PropertyNotFoundException(e);
  } catch (ELException e) {
    throw new EvaluationException(e);
  }
  
}

代码示例来源:origin: org.apache.myfaces.core/myfaces-shaded-impl

FacesContext.getCurrentInstance().getELContext().isPropertyResolved());
throw new PropertyNotFoundException(e.getMessage(), e);
throw new ELException(e.getMessage(), e);

代码示例来源:origin: org.glassfish/javax.faces

@Override
public Object getValue(FacesContext context) throws EvaluationException,
    PropertyNotFoundException {
  ELContext ctx = context.getELContext();
  try {
    return this.delegate.getValue(ctx);
  } catch (javax.el.PropertyNotFoundException e) {
    throw new PropertyNotFoundException(e.getMessage(), e.getCause());
  } catch (ELException e) {
    throw new EvaluationException(e.getMessage(), e.getCause());
  }
}

代码示例来源:origin: org.glassfish/javax.faces

public void setValue(FacesContext context, Object value) throws EvaluationException, PropertyNotFoundException {
  if (context == null) {
    throw new NullPointerException("FacesContext -> null");
  }
  try {
    valueExpression.setValue(context.getELContext(), value);
  } catch (javax.el.PropertyNotFoundException pnfe) {
    throw new PropertyNotFoundException(pnfe);
  } catch (javax.el.PropertyNotWritableException pnwe) {
    throw new PropertyNotFoundException(pnwe);
  } catch (ELException elex) {
    throw new EvaluationException(elex);
  }
}

代码示例来源:origin: javax.faces/jsf-impl

public Object getValue(Object base, Object property) {
  if (delegate != null) {
    return delegate.getValue(base, property);
  }
  try {
    FacesContext context = FacesContext.getCurrentInstance();
    return context.getApplication().getELResolver().getValue(context.getELContext(), base,property);
  } catch (javax.el.PropertyNotFoundException pnfe) {
    throw new PropertyNotFoundException(pnfe);
  } catch (ELException elex) {
    throw new EvaluationException(elex);
  }
}

代码示例来源:origin: com.sun.facelets/jsf-facelets

public boolean isReadOnly(ELContext context, Object base,
    Object property) {
  if (property == null) {
    return true;
  }
  try {
    context.setPropertyResolved(true);
    if (base == null) {
      return false; // what can I do?
    } else {
      if (base instanceof List || base.getClass().isArray()) {
        return this.getPropertyResolver().isReadOnly(base,
            Integer.parseInt(property.toString()));
      } else {
        return this.getPropertyResolver().isReadOnly(base,
            property);
      }
    }
  } catch (PropertyNotFoundException e) {
    throw new javax.el.PropertyNotFoundException(e.getMessage(), e
        .getCause());
  } catch (EvaluationException e) {
    throw new ELException(e.getMessage(), e.getCause());
  }
}

相关文章