Thymeleaf Spring weblow ajax

Thymeleaf Spring weblow ajax,ajax,spring-webflow-2,thymeleaf,Ajax,Spring Webflow 2,Thymeleaf,我正在尝试使用SpringWebFlow进行我的第一个ajax调用/响应,并使用thymeleaf进行响应。我使用了来自他们pdf thymeleaf+Spring3的thymeleaf示例 流程配置: <view-state id="detail" view="bookingDetail"> <transitionon="updateData"> <render fragments="hoteldata"/> </transition> <

我正在尝试使用SpringWebFlow进行我的第一个ajax调用/响应,并使用thymeleaf进行响应。我使用了来自他们pdf thymeleaf+Spring3的thymeleaf示例

流程配置:

<view-state id="detail" view="bookingDetail"> 
<transitionon="updateData">
<render fragments="hoteldata"/>
</transition>
</view-state>
或Firefox控制台:

TypeError: _1a is null
http://localhost:9092/resources/spring/Spring-Dojo.js
Line 16

我不知道如何继续或从哪里开始搜索问题。有人有想法吗?

这看起来确实是一个javascript问题,好像DOJO没有找到triggerform表单标记,它正在寻找它的method属性,但说表单对象为null

可能是您的activeOrders转换实际上正在修改并删除该表单,或者可能为其输出与此处显示的不同的HTML?我建议尝试不使用activeOrders事件部分


顺便说一句,您的SWF配置中有一个拼写错误的transitionon属性应该是transitionon

谢谢,有一些javascript将所有表单id更改为formSomeNumebr。现在还有其他问题,但这会重复其他问题。
<script type="text/javascript" th:src="@{/resources/dojo/dojo.js}"></script>
<script type="text/javascript" th:src="@{/resources/spring/Spring.js}"></script>
<script type="text/javascript" th:src="@{/resources/spring/Spring-Dojo.js}"></script>
...
<form id="triggerform" method="post" action="">
<input type="submit" id="doUpdate" name="_eventId_updateData" value="Update now!" />
</form>
<script type="text/javascript">
Spring.addDecoration(
new Spring.AjaxEventDecoration({formId:'triggerform',elementId:'doUpdate',event:'onclick'}));
</script>
 <input type="submit" id="doUpdate" name="_eventId_activeOrders" value="Update now!" onclick="return false;"/>
Uncaught TypeError: Cannot read property 'method' of null Spring-Dojo.js:16
dojo.declare.submitForm Spring-Dojo.js:16
dojo.declare.submit Spring-Dojo.js:16
dojo.hitch
TypeError: _1a is null
http://localhost:9092/resources/spring/Spring-Dojo.js
Line 16