本文整理了Java中javax.faces.el.PropertyNotFoundException.getCause()
方法的一些代码示例,展示了PropertyNotFoundException.getCause()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。PropertyNotFoundException.getCause()
方法的具体详情如下:
包路径:javax.faces.el.PropertyNotFoundException
类名称: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());
内容来源于网络,如有侵权,请联系作者删除!