From: Chad B. <cwb...@us...> - 2007-09-26 15:46:03
|
User: cwbrandon Date: 07/09/26 08:46:03 Modified: andromda-jsf2/src/main/resources/templates/jsf2/controllers Controller.java.vsl Log: switch ordering of parameter/attribute population Revision Changes Path 1.5 +3 -2 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.4 retrieving revision 1.5 diff -u -w -r1.4 -r1.5 --- Controller.java.vsl 19 Sep 2007 16:50:53 -0000 1.4 +++ Controller.java.vsl 26 Sep 2007 15:46:03 -0000 1.5 @@ -54,11 +54,12 @@ // - pass any properties from the previous form along ${managedBeansPackage}.${formPopulatorName}.populateForm(currentForm, form); + // - populate the form with any event attributes that may match + ${managedBeansPackage}.${formPopulatorName}.populateFormFromPropertyMap( + form, form.getDateTimeFormatters(), (java.util.Map)this.getRequest().getAttribute(ACTION_EVENT_ATTRIBUTES)); // - populate the form with any request parameters that may match ${managedBeansPackage}.${formPopulatorName}.populateFormFromPropertyMap( form, form.getDateTimeFormatters(), this.getContext().getExternalContext().getRequestParameterMap()); - ${managedBeansPackage}.${formPopulatorName}.populateFormFromPropertyMap( - form, form.getDateTimeFormatters(), (java.util.Map)this.getRequest().getAttribute(ACTION_EVENT_ATTRIBUTES)); #end try { |