I am having a issue with using Spring.AjaxEventDecoration and dijit.form.Select, if the user picks the sex type from the select box somehow I am getting the elementID in the bean is Spring MVC? Below is my form:
Code:form:select path="sex"> <form:option value="MALE" label="MALE" /> <form:option value="FEMALE" label="FEMALE" /> </form:select> <script type="text/javascript"> Spring.addDecoration(new Spring.ElementDecoration({ elementId : "sex", widgetType : "dijit.form.Select", widgetAttrs : { promptMessage : "Enter Borough", required : true }})); Spring.addDecoration(new Spring.AjaxEventDecoration({ elementId: "sex", event: "onChange", formId:"customer", params: {fragments:"body", _eventId: "loadSchools"}})); </script>


Reply With Quote