|
From: Walter M. <wal...@us...> - 2008-08-11 18:58:48
|
User: walterim
Date: 08/08/11 11:58:58
Modified: andromda-jsf2/src/main/resources/templates/jsf2/controllers
Controller.java.vsl
Log:
Logging only unhandled exceptions.
Revision Changes Path
1.27 +3 -3 cartridges/andromda-jsf2/src/main/resources/templates/jsf2/controllers/Controller.java.vsl
Index: Controller.java.vsl
===================================================================
RCS file: /cvsroot/andromdaplugins/cartridges/andromda-jsf2/src/main/resources/templates/jsf2/controllers/Controller.java.vsl,v
retrieving revision 1.26
retrieving revision 1.27
diff -u -w -r1.26 -r1.27
--- Controller.java.vsl 24 Jul 2008 21:05:48 -0000 1.26
+++ Controller.java.vsl 11 Aug 2008 18:58:58 -0000 1.27
@@ -104,8 +104,9 @@
}
catch (final Throwable throwable)
{
- logger.error(throwable);
this.setForm("$action.formKey", currentForm, $portlet);
+ // - set the forward to null so that we stay on the current view
+ forward = null;
try
{
final String messageKey = ${managedBeansPackage}.${patternMatchingExceptionHandler}.instance().handleException(throwable);
@@ -115,8 +116,7 @@
}
catch (Throwable exception)
{
- // - set the forward to null so that we stay on the current view
- forward = null;
+ logger.error(exception);
this.addExceptionMessage(exception);
}
}
|