From: Walter M. <wal...@us...> - 2008-07-22 16:08:19
|
User: walterim Date: 08/07/22 09:08:27 Modified: andromda-jsf2/src/main/resources/templates/jsf2/controllers Controller.java.vsl Log: Avoids a compile error when the form does not need the population. Revision Changes Path 1.24 +2 -0 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.23 retrieving revision 1.24 diff -u -w -r1.23 -r1.24 --- Controller.java.vsl 21 Jul 2008 22:35:58 -0000 1.23 +++ Controller.java.vsl 22 Jul 2008 16:08:17 -0000 1.24 @@ -76,9 +76,11 @@ final javax.faces.application.FacesMessage.Severity messageSeverity = this.getMaximumMessageSeverity(); if (messageSeverity != null && javax.faces.application.FacesMessage.SEVERITY_ERROR.getOrdinal() <= messageSeverity.getOrdinal()) { +#if ($formPopulationOperationRequired) // - copy any messages to the 'currentForm' org.apache.commons.beanutils.PropertyUtils.setProperty(currentForm, "$formMessagesProperty", org.apache.commons.beanutils.PropertyUtils.getProperty(form, "$formMessagesProperty")); +#end this.setForm("$action.formKey", currentForm, $portlet); } #saveMessages($action " ") |