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