public Object invoke(FacesContext facesContext, Object[] params) throws EvaluationException, MethodNotFoundException { 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.getCause()); } }
FacesContext context = FacesContext.getCurrentInstance(); Application application = context.getApplication(); LOGGER.log(Level.SEVERE, e.getMessage(), e); (binding.getExpressionString() + ": " + e.getMessage(), e); LOGGER.log(Level.SEVERE, e.getMessage(), e); (binding.getExpressionString() + ": " + e.getMessage(), e); context.renderResponse();
@Override 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 Class<?> getType(FacesContext context) throws MethodNotFoundException { if (context == null) { throw new NullPointerException("FacesConext -> null"); } try { return methodExpression.getMethodInfo(context.getELContext()).getReturnType(); } catch (ELException e) { throw new MethodNotFoundException(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); } }
/** * Invoke method binding expression for Shale <code>ActionState</code>. * Shale requires return type to be a <code>java.lang.String</code>. * * @param expr Method binding expression * @return String Method return value * @throws SCXMLExpressionException Re-throw potential Faces * exceptions as a SCXMLExpressionException. */ private String invokeShaleActionStateMethod(final String expr) throws SCXMLExpressionException { try { MethodBinding mb = context.getApplication(). createMethodBinding(expr, SIGNATURE); return (String) mb.invoke(context, PARAMETERS); //Rethrow any exception as SCXMLExpressionException instance } catch (ReferenceSyntaxException rse) { throw new SCXMLExpressionException(rse.getMessage(), rse); } catch (MethodNotFoundException mnfe) { throw new SCXMLExpressionException(mnfe.getMessage(), mnfe); } catch (EvaluationException ee) { throw new SCXMLExpressionException(ee.getMessage(), ee); } }
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); } }
/** * <p>Return the <code>Method</code> to be called.</p> * * @param base Base object from which to extract the method reference */ Method method(Object base) { Class clazz = base.getClass(); try { return (clazz.getMethod(name, args)); } catch (NoSuchMethodException e) { throw new MethodNotFoundException(ref + ": " + e.getMessage()); } }
@SuppressWarnings("deprecation") private String getNavigationOutcome(FacesContext context, MethodBinding binding) { if (binding != null) { try { Object invokeResult; if ((invokeResult = binding.invoke(context, null)) != null) { return invokeResult.toString(); } // else, default to null, as returned at the end } catch (MethodNotFoundException e) { if (LOGGER.isLoggable(FINE)) { LOGGER.log(FINE, e.getMessage(), e); } throw new FacesException(binding.getExpressionString() + ": " + e.getMessage(), e); } catch (EvaluationException e) { if (LOGGER.isLoggable(FINE)) { LOGGER.log(FINE, e.getMessage(), e); } throw new FacesException(binding.getExpressionString() + ": " + e.getMessage(), e); } } return null; }
FacesContext context = FacesContext.getCurrentInstance(); Application application = context.getApplication(); LOGGER.log(Level.FINE, e.getMessage(), e); (binding.getExpressionString() + ": " + e.getMessage(), e); LOGGER.log(Level.FINE, e.getMessage(), e); (binding.getExpressionString() + ": " + e.getMessage(), e); context.renderResponse();
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 Class<?> getType(FacesContext context) throws MethodNotFoundException { if (context == null) { throw new NullPointerException("FacesConext -> null"); } try { return methodExpression.getMethodInfo(context.getELContext()).getReturnType(); } catch (ELException e) { throw new MethodNotFoundException(e); } }
@Override 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); } }
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); } }
/** * <p>Return the <code>Method</code> to be called.</p> * * @param base Base object from which to extract the method reference */ Method method(Object base) { Class clazz = base.getClass(); try { return (clazz.getMethod(name, args)); } catch (NoSuchMethodException e) { throw new MethodNotFoundException(ref + ": " + e.getMessage()); } }
@SuppressWarnings("deprecation") private String getNavigationOutcome(FacesContext context, MethodBinding binding) { if (binding != null) { try { Object invokeResult; if ((invokeResult = binding.invoke(context, null)) != null) { return invokeResult.toString(); } // else, default to null, as returned at the end } catch (MethodNotFoundException e) { if (LOGGER.isLoggable(FINE)) { LOGGER.log(FINE, e.getMessage(), e); } throw new FacesException(binding.getExpressionString() + ": " + e.getMessage(), e); } catch (EvaluationException e) { if (LOGGER.isLoggable(FINE)) { LOGGER.log(FINE, e.getMessage(), e); } throw new FacesException(binding.getExpressionString() + ": " + e.getMessage(), e); } } return null; }
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); } }
String outcome = (result != null) ? result.toString() : null; NavigationHandler nh = facesContext.getApplication().getNavigationHandler(); nh.handleNavigation( facesContext, selectionAction.getExpressionString(), outcome); facesContext.renderResponse(); selectionAction.getExpressionString()+": "+e.getMessage(), e); selectionAction.getExpressionString()+": "+e.getMessage(), e); String outcome = (result != null) ? result.toString() : null; NavigationHandler nh = facesContext.getApplication().getNavigationHandler(); nh.handleNavigation( facesContext, clickAction.getExpressionString()+": "+e.getMessage(), e); clickAction.getExpressionString()+": "+e.getMessage(), e);
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()); } }
@Override 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); } }