From 479bc23dd8d59c135a16eaadd17ffca794bff75a Mon Sep 17 00:00:00 2001 From: Keith Donald Date: Thu, 15 May 2008 02:11:36 +0000 Subject: [PATCH] made radio button binding work with javascript on --- .../src/main/webapp/WEB-INF/hotels/booking/bookingForm.jsp | 6 ++++-- 1 file changed, 4 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 b76e91df..ce1c289f 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,13 @@ 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 }));