Ajax + Spring Webflow

Ajax + Spring Webflow,第1张

Ajax + Spring Webflow

如果您认为问题来自ajax调用,那么在此处编写ajax调用会很有帮助,因此我们可以检查调用是否正确完成。

您可以在进行ajax调用时尝试传递在data参数序列化表格 。另外,不要忘记在URL中添加 ajaxSource
参数。希望能有所帮助。

HTML示例

<form id="formId" method="post" action="${flowExecutionUrl}&_eventId=disassociateProperty">    <input type="text" id="currentPId" /></form>

jQuery示例:

$.ajax({        type: "POST",        data: $("#formId").serialize(),        url: $("#formId").attr("action") + "&ajaxSource=true",        ...});


欢迎分享,转载请注明来源:内存溢出

原文地址:https://54852.com/zaji/5163801.html

(0)
打赏 微信扫一扫微信扫一扫 支付宝扫一扫支付宝扫一扫
上一篇 2022-11-18
下一篇2022-11-18

发表评论

登录后才能评论

评论列表(0条)

    保存