Beispiel #1
0
 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);
 }
Beispiel #2
0
 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);
 }
Beispiel #3
0
 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));
 }
Beispiel #4
0
 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);
 }
Beispiel #5
0
 void update(TemplateContext context, Object[] parameters) {
   arguments[0] = context.getFacesContext();
   arguments[1] = context.getComponent();
   System.arraycopy(parameters, 0, arguments, 2, parameters.length);
 }