Announcement Announcement Module
Collapse
No announcement yet.
Issue with Spring.AjaxEventDecoration working with dijit.form.Select n Spring MVC Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Issue with Spring.AjaxEventDecoration working with dijit.form.Select n Spring MVC

    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>
Working...
X