void handleIllegalAccessException(TemplateContext context, IllegalAccessException e) { String logMessage = (utils) ? Messages.getMessage( Messages.getMessage( Messages.METHOD_CALL_ERROR_3, methodName, context.getComponent().getId())) : Messages.getMessage( Messages.getMessage( Messages.METHOD_CALL_ERROR_3a, methodName, context.getComponent().getId())); String excMessage = (utils) ? Messages.getMessage( Messages.getMessage( Messages.METHOD_CALL_ERROR_4, new Object[] { methodName, context.getComponent().getId(), e.getCause().getMessage() })) : Messages.getMessage( Messages.getMessage( Messages.METHOD_CALL_ERROR_4a, new Object[] { methodName, context.getComponent().getId(), e.getCause().getMessage() })); MethodCallElement._log.error(logMessage, e); throw new FacesException(excMessage, e); }
void handleIllegalAccessException(TemplateContext context, IllegalAccessException e) { MethodCallElement._log.error( Messages.getMessage( Messages.METHOD_CALL_ERROR_3a, methodName, context.getComponent().getId()), e); throw new FacesException( Messages.getMessage( Messages.METHOD_CALL_ERROR_4a, new Object[] {methodName, context.getComponent().getId(), e.getCause().getMessage()}), e); }
void handleMethodNotFoundException(TemplateContext context) throws MethodNotFoundException { MethodCallElement._log.error( Messages.getMessage( Messages.METHOD_CALL_ERROR_5a, methodName, context.getComponent().getId())); throw new MethodNotFoundException( Messages.getMessage(Messages.METHOD_CALL_ERROR_6a, methodName)); }
void handleMethodNotFoundException(TemplateContext context) throws MethodNotFoundException { String logMessage = (utils) ? Messages.getMessage( Messages.getMessage( Messages.METHOD_CALL_ERROR_5, methodName, context.getComponent().getId())) : Messages.getMessage( Messages.getMessage( Messages.METHOD_CALL_ERROR_5a, methodName, context.getComponent().getId())); String excMessage = (utils) ? Messages.getMessage(Messages.getMessage(Messages.METHOD_CALL_ERROR_6, methodName)) : Messages.getMessage(Messages.getMessage(Messages.METHOD_CALL_ERROR_6a, methodName)); MethodCallElement._log.error(logMessage); throw new FacesException(excMessage); }
void update(TemplateContext context, Object[] parameters) { arguments[0] = context.getFacesContext(); arguments[1] = context.getComponent(); System.arraycopy(parameters, 0, arguments, 2, parameters.length); }