加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 百科 > 正文

JSF同时进行ajax调用

发布时间:2020-12-16 03:12:19 所属栏目:百科 来源:网络整理
导读:是否可以使用JSF进行同时执行的ajax调用(在开始新调用之前不等待先前的调用完成)? 不,它们按规范显式排队,没有任何异常.见 JSF 2 specification第13.3.2章: 13.3.2 Ajax Request Queueing All Ajax requests must be put into a client side request queue
是否可以使用JSF进行同时执行的ajax调用(在开始新调用之前不等待先前的调用完成)?
不,它们按规范显式排队,没有任何异常.见 JSF 2 specification第13.3.2章:

13.3.2 Ajax Request Queueing

All Ajax requests must be put into a client side request queue before they are sent to the
server to ensure Ajax requests are processed in the order they are sent. The request that has been waiting in the queue the
longest is the next request to be sent. After a request is sent,the Ajax request callback function must remove the request
from the queue (also known as dequeuing). If the request completed successfully,it must be removed from the queue. If
there was an error,the client must be notified,but the request must still be removed from the queue so the next request
can be sent. The next request (the oldest request in the queue) must be sent. Refer to the jsf.ajax.request
JavaScript documentation for more specifics about the Ajax request queue.

这样做是为了确保服务器端的视图作用域bean的线程安全性.

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读