public Object invoke(FacesContext facesContext, Object[] params) throws EvaluationException { try { return methodExpression.invoke(facesContext.getELContext(), params); } catch (javax.el.MethodNotFoundException e) { throw new javax.faces.el.MethodNotFoundException(e); } catch (ELException e) { throw new EvaluationException(e); } }
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); } }
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()); } }
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); } }
public Class getType(FacesContext context) throws MethodNotFoundException { try { return m.getMethodInfo(context.getELContext()).getReturnType(); } catch (javax.el.MethodNotFoundException e) { throw new MethodNotFoundException(e.getMessage(), e.getCause()); } catch (ELException e) { throw new EvaluationException(e.getMessage(), e.getCause()); } }
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()); } }
FacesContext.getCurrentInstance().getELContext().isPropertyResolved()); throw new PropertyNotFoundException(e.getMessage(), e); throw new ELException(e.getMessage(), e);
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()); } }
@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); } }
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()); } }
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()); } }
@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); } }
@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()); } }
@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); } }
public Class getType(FacesContext facesContext) throws MethodNotFoundException { try { return methodExpression.getMethodInfo(facesContext.getELContext()).getReturnType(); } catch (javax.el.MethodNotFoundException e) { throw new javax.faces.el.MethodNotFoundException(e); } catch (ELException e) { throw new EvaluationException(e); } }
public boolean isReadOnly(FacesContext context) throws EvaluationException, PropertyNotFoundException { if (context == null) { throw new NullPointerException("FacesContext -> null"); } boolean result = false; try { result = valueExpression.isReadOnly(context.getELContext()); } catch (ELException elex) { throw new EvaluationException(elex); } return result; }
@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); } }
private <T> T invoke(Invoker<T> invoker) { try { return invoker.invoke(); } catch (javax.faces.el.MethodNotFoundException e) { throw new MethodNotFoundException(e.getMessage(), e); } catch (EvaluationException e) { throw new ELException(e.getMessage(), e); } }
<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); } }
public static String invoke(MethodBinding methodBinding, FacesContext context) { try { return (String) methodBinding.invoke(context, null); } catch (EvaluationException e) { Throwable cause = e.getCause(); if (cause != null && cause instanceof AbortProcessingException) { throw (AbortProcessingException) cause; } throw e; } } }