@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; }
@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; }
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); } }
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); } }
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); } }
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); } }
LOGGER.log(Level.SEVERE, e.getMessage(), e); (binding.getExpressionString() + ": " + e.getMessage(), e);
LOGGER.log(Level.FINE, e.getMessage(), e); (binding.getExpressionString() + ": " + e.getMessage(), 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); } }
selectionAction.getExpressionString()+": "+e.getMessage(), e); clickAction.getExpressionString()+": "+e.getMessage(), e);