How can I call a JavaScript function after every a4j AJAX response?

后端 未结 4 548
遇见更好的自我
遇见更好的自我 2021-01-14 02:45

I am working on a web app using JSF w/Seam. I want to be able to call a JavaScript function after every ajax response. I\'m looking for a way to do this without putting an o

4条回答
  •  隐瞒了意图╮
    2021-01-14 03:02

    Using a4j:status should work, but it has to be inside an h:form tag:

    
            
    
    
    ...... way more code  
     
    

    After every ajax call this pops up a wait picture and disables the search button.

    Interestingly enough, at least in our code, this doesn't work for anything in a nested a4j:region.

提交回复
热议问题