作者:accosta谭_738 | 来源:互联网 | 2023-09-06 11:36
Situation情况InmyWicketapplication,Ihaveapagewhichcontainstwotags.Eachtimeatabisse
Situation
情况
In my Wicket application, I have a page which contains two tags. Each time a tab is selected, its content is fetched via Ajax so that every time you switch to a different tab its content it loaded fresh from the server.
在Wicket应用程序中,我有一个包含两个标签的页面。每次选择一个选项卡时,它的内容都通过Ajax获取,以便每次切换到不同的选项卡时,它从服务器上重新加载的内容。
On one of the tabs I have an input field which has an onblur event which saves the contents of the field via Ajax.
在其中一个选项卡上,我有一个输入字段,它有一个onblur事件,通过Ajax保存字段的内容。
Problem
问题
If the focus is on the input field and I click to a blank area of the page, the Ajax request it fired and the data saved.
如果焦点在输入字段上,我单击页面的空白区域,将触发Ajax请求并保存数据。
If, instead of clicking on a blank area of the page, I click on the other tab, the Ajax request to save the input field is fired but not the Ajax request to switch tabs.
如果单击另一个选项卡,而不是单击页面的空白区域,则会触发Ajax请求以保存输入字段,而不是Ajax请求切换选项卡。
Is the number of concurrent Ajax requests limited in Wicket to one?
并发Ajax请求的数量是否限制为1 ?
3 个解决方案