javax.faces.el.PropertyNotFoundException.getCause()方法的使用及代码示例

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

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

PropertyNotFoundException.getCause介绍

暂无

代码示例

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

public Object getValue(ELContext context, Object base, Object property) {
  if (property == null) {
    return null;
  }
  try {
    context.setPropertyResolved(true);
    if (base == null) {
      return this.getVariableResolver().resolveVariable(faces,
          property.toString());
    } else {
      if (base instanceof List || base.getClass().isArray()) {
        return this.getPropertyResolver().getValue(base,
            Integer.parseInt(property.toString()));
      } else {
        return this.getPropertyResolver().getValue(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: 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());
  }
}

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

public Class getType(ELContext context, Object base, Object property) {
  if (property == null) {
    return null;
  }
  try {
    context.setPropertyResolved(true);
    if (base == null) {
      Object obj = this.getVariableResolver().resolveVariable(
          faces, property.toString());
      return (obj != null) ? obj.getClass() : null;
    } else {
      if (base instanceof List || base.getClass().isArray()) {
        return this.getPropertyResolver().getType(base,
            Integer.parseInt(property.toString()));
      } else {
        return this.getPropertyResolver().getType(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: 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: com.sun.facelets/jsf-facelets

public Class getType(ELContext context, Object base, Object property) {
  if (property == null) {
    return null;
  }
  try {
    context.setPropertyResolved(true);
    if (base == null) {
      Object obj = this.getVariableResolver().resolveVariable(
          faces, property.toString());
      return (obj != null) ? obj.getClass() : null;
    } else {
      if (base instanceof List || base.getClass().isArray()) {
        return this.getPropertyResolver().getType(base,
            Integer.parseInt(property.toString()));
      } else {
        return this.getPropertyResolver().getType(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.glassfish/jakarta.faces

@Override
public Class getType(ELContext context, Object base, Object property) {
  if (property == null) {
    return null;
  }
  try {
    context.setPropertyResolved(true);
    if (base == null) {
      Object obj = this.getVariableResolver().resolveVariable(
          faces, property.toString());
      return (obj != null) ? obj.getClass() : null;
    } else {
      if (base instanceof List || base.getClass().isArray()) {
        return this.getPropertyResolver().getType(base,
            Integer.parseInt(property.toString()));
      } else {
        return this.getPropertyResolver().getType(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.glassfish/javax.faces

@Override
public Class getType(ELContext context, Object base, Object property) {
  if (property == null) {
    return null;
  }
  try {
    context.setPropertyResolved(true);
    if (base == null) {
      Object obj = this.getVariableResolver().resolveVariable(
          faces, property.toString());
      return (obj != null) ? obj.getClass() : null;
    } else {
      if (base instanceof List || base.getClass().isArray()) {
        return this.getPropertyResolver().getType(base,
            Integer.parseInt(property.toString()));
      } else {
        return this.getPropertyResolver().getType(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.glassfish/jakarta.faces

@Override
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.glassfish/javax.faces

@Override
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: com.sun.facelets/jsf-facelets

public Object getValue(ELContext context, Object base, Object property) {
  if (property == null) {
    return null;
  }
  try {
    context.setPropertyResolved(true);
    if (base == null) {
      return this.getVariableResolver().resolveVariable(faces,
          property.toString());
    } else {
      if (base instanceof List || base.getClass().isArray()) {
        return this.getPropertyResolver().getValue(base,
            Integer.parseInt(property.toString()));
      } else {
        return this.getPropertyResolver().getValue(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.glassfish/jakarta.faces

@Override
public Object getValue(ELContext context, Object base, Object property) {
  if (property == null) {
    return null;
  }
  try {
    context.setPropertyResolved(true);
    if (base == null) {
      return this.getVariableResolver().resolveVariable(faces,
          property.toString());
    } else {
      if (base instanceof List || base.getClass().isArray()) {
        return this.getPropertyResolver().getValue(base,
            Integer.parseInt(property.toString()));
      } else {
        return this.getPropertyResolver().getValue(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.glassfish/javax.faces

@Override
public Object getValue(ELContext context, Object base, Object property) {
  if (property == null) {
    return null;
  }
  try {
    context.setPropertyResolved(true);
    if (base == null) {
      return this.getVariableResolver().resolveVariable(faces,
          property.toString());
    } else {
      if (base instanceof List || base.getClass().isArray()) {
        return this.getPropertyResolver().getValue(base,
            Integer.parseInt(property.toString()));
      } else {
        return this.getPropertyResolver().getValue(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: com.sun.facelets/jsf-facelets

.getCause());
} catch (EvaluationException e) {
  throw new ELException(e.getMessage(), e.getCause());

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

.getCause());
} catch (EvaluationException e) {
  throw new ELException(e.getMessage(), e.getCause());

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

.getCause());
} catch (EvaluationException e) {
  throw new ELException(e.getMessage(), e.getCause());

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

.getCause());
} catch (EvaluationException e) {
  throw new ELException(e.getMessage(), e.getCause());

相关文章