我正在使用 Spring Web-flow 并尝试使用 Spring AjaxEventDecoration 来启动转换。但是发生了一些事情,这段代码没有运行
<tr>
<td><label>Borough</label></td>
<td><select id="borough" name="borough">
<option value="UNKNOWN">Unknown</option>
<option value="X">Bronx</option>
<option value="K">Brooklyn</option>
<option value="M">Manhattan</option>
<option value="Q">Queens</option>
<option value="R">Staten Island</option>
<option value="O">All Other Schools</option>
</select>
<script type="text/javascript" src='<c:url value="/resources/spring/Spring.js" />'> </script>
<script type="text/javascript">
Spring.addDecoration(new Spring.AjaxEventDecoration({
elementId : "borough",
formId : "member",
event : "onChange",
params : {
_eventId : "loadSchools",
fragments : "body"
}
}));
</script>
</td>
</tr>