0
我有一個與使用Spring.AjaxEventDecoration和dijit.form.Select的問題,如果用戶從選擇框中選擇性別類型我以某種方式獲得bean中的elementID是Spring MVC?以下是我的表單:問題Spring.AjaxEventDecoration和dijit.form.Select在Spring MVC
<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 Sex",
required : true }}));
Spring.addDecoration(new Spring.AjaxEventDecoration({
elementId: "sex",
event: "onChange",
formId:"customer",
params: {fragments:"body", _eventId: "loadSchools"}}));
</script>
這是一個http://stackoverflow.com/questions/12859099/issue-with-springs-web-flow-form-submit-values-are-right-ajaxeventdecoration-i – rptmat57