How can I show some loading message when making request using <f:ajax>
?
相关问题
- Carriage Return (ASCII chr 13) is missing from tex
- java.lang.NullPointerException at java.io.PrintWri
- Using :remote => true with hover event
- Is there a way to play audio on a mobile browser w
- h:selectOneMenu in p:dataTable doesn't submit
相关文章
- spring boot用ajax发送请求后,请求路径多了controller的路径
- 针对复杂结构的前端页面,如何更好地与后台交互实现动态网页?
- ajax上传图片,偶尔会出现后台保存的图片有错误或者已损坏,请问可能是什么原因造成的?
- 前端 我想知道怎样通过发ajax请求向服务器拿到数据然后分页显示 最好是点击一页就发一次请求
- 接口返回的数据格式如下,请问可以取到level值为2的name数组呢
- 如何通过页面输入账号密码提交给后端
- How to get jQuery.ajax response status?
- How to read local csv file in client side javascri
richfaces has a very easy to use component that I use like this:
If you're not already using a 3rd party component library which could already have a ready-made component for that, such as PrimeFaces with
<p:ajaxStatus>
, then you can use the JSF-provided JavaScriptjsf.ajax.addOnEvent()
function (and eventually alsojsf.ajax.addOnError()
) to hook a function on ajax events.Here's a basic kickoff example:
See also chapter 13.3.5.2 of the JSF 2.0 specification:
You can grab some cool ajax loader gifs for free from http://www.ajaxload.info, by the way.