From 1ac099b945532526a9a5b65b6709006b4a25add9 Mon Sep 17 00:00:00 2001 From: Scott Andrews Date: Wed, 26 Nov 2008 19:38:57 +0000 Subject: [PATCH] SWF-960 Booking MVC Reference Application: Decorated RadioButton components do not bind "on" selected value --- .../main/webapp/WEB-INF/hotels/booking/bookingForm.jsp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/spring-webflow-samples/booking-mvc/src/main/webapp/WEB-INF/hotels/booking/bookingForm.jsp b/spring-webflow-samples/booking-mvc/src/main/webapp/WEB-INF/hotels/booking/bookingForm.jsp index 4b3803d5..3b8b3ff6 100644 --- a/spring-webflow-samples/booking-mvc/src/main/webapp/WEB-INF/hotels/booking/bookingForm.jsp +++ b/spring-webflow-samples/booking-mvc/src/main/webapp/WEB-INF/hotels/booking/bookingForm.jsp @@ -81,11 +81,15 @@ Spring.addDecoration(new Spring.ElementDecoration({ elementId : 'smoking', widgetType : "dijit.form.RadioButton", - widgetModule : "dijit.form.CheckBox"})); + widgetModule : "dijit.form.CheckBox", + widgetAttrs : { value : "true" } + })); Spring.addDecoration(new Spring.ElementDecoration({ elementId : 'non-smoking', widgetType : "dijit.form.RadioButton", - widgetModule : "dijit.form.CheckBox"})); + widgetModule : "dijit.form.CheckBox", + widgetAttrs : { value : "false" } + }));