The PrimeFaces.ab function is a shortcut function for PrimeFaces.ajax.AjaxRequest.

    //ajax shortcut
ab: function(cfg, ext) {
return PrimeFaces.ajax.AjaxRequest(cfg, ext);
}

The PrimeFaces.ajax.AjaxRequest can be asynchronous or synchronous. The AjaxRequest uses the AjaxUtils, which handles all send, process, response, and update.

PrimeFaces.ajax.AjaxRequest = function(cfg, ext) {
cfg.ext = ext; if(cfg.async) {
return PrimeFaces.ajax.AjaxUtils.send(cfg);
}
else {
return PrimeFaces.ajax.Queue.offer(cfg);
}
}

Passing a cfg (configuration) object to the PrimeFaces.ajax.AjaxUtils.send(cfg), this cfg object has:

  • cfg.global: a boolean value used to trigger p:ajaxStatus if it's a true.
  • cfg.onstart: to be called when the request is to be send.
  • cfg.async: a boolean value, where if this call is asynchronous or not.
  • cfg.source: can be a client id or an element defined by this keyword
  • cfg.formId: if an explicit form is defined, or it would look into a parent source
  • cfg.resetValues
  • cfg.ignoreAutoUpdate
  • cfg.fragmentId: used for the process of the components
  • cfg.fragmentUpdate
  • cfg.event: behaviour event, like click or change
  • cfg.params: request params
  • cfg.partialSubmit: if partial submit is enabled, there are components to process partially
  • cfg.onerror: to be called when the request had an error status.
  • cfg.onsuccess: to be called when the request had a success status.
  • cfg.oncomplete: to be called when the request is completed.

Note: I came up with this explanation based on my understanding of the source code.

Also you can refer to this answer, might be helpful.

http://stackoverflow.com/questions/23031582/primefaces-ab-function

最新文章

  1. mysql内置函数大全
  2. 学员报名WDP培训之前必须阅读
  3. C#链接阿里云OCS
  4. Redis String命令
  5. EXt form属性
  6. Linux内核基础--事件通知链(notifier chain)
  7. mac下通过docker搭建LEMP环境
  8. Day22 JSONP、瀑布流
  9. java并发编程--Executor框架(一)
  10. 使用TypeScript实现简单的HTML5贪吃蛇游戏
  11. python运维开发(六)----模块续
  12. HTML 5 新标签
  13. JS面向对象之原型链
  14. node连接mongodb(简略版)
  15. Karel版本的nnet1
  16. AtCoder Grand Contest 11~17 做题小记
  17. (转)winform之RichTextBox
  18. Orcal数据库12c安装完成后注意事项
  19. [Android Security] DEX文件格式分析
  20. bzoj1084&&洛谷2331[SCOI2005]最大子矩阵

热门文章

  1. Kotlin之定义函数
  2. 请介绍下 adb、ddms、aapt 的作用
  3. overflow-x scroll 内部元素滚动,父级容器代码
  4. 做筛选遍历时遇到的json字符串、json对象、json数组 三者之间的转换问题
  5. opensuse终端命令行安装编码解码器
  6. 依赖注入——angular
  7. Fidder插件自动生成爬虫代码(C#)
  8. 关于glog使用中遇到的问题
  9. js知识点——2之navigator
  10. mysql 加密 解密函数