-
1. Re: a4j:queue - onbeforedomupdate not firing
mcmurdosound Nov 20, 2011 5:34 AM (in response to bravocharlie)You could 'hack' into richfaces' clientside ajax stuff:
<script>
var defaultRFAjax = RichFaces.ajax;
RichFaces.ajax = function(source, event, options){
// your code goes here:
// console.log(event);
defaultRFAjax(source,event,options);
}
</script>
every ajax call from richfaces will use the modified function.
-
2. Re: a4j:queue - onbeforedomupdate not firing
bravocharlie Nov 20, 2011 5:38 AM (in response to mcmurdosound)Thanks Christian, I'll give that a try!
-
3. Re: a4j:queue - onbeforedomupdate not firing
mcmurdosound Nov 20, 2011 6:06 AM (in response to bravocharlie)the funny thing is, I've tried the a4j:queue examples (http://docs.jboss.org/richfaces/latest_4_0_X/Component_Reference/en-US/html/chap-Component_Reference-Processing_management.html#sect-Component_Reference-Processing_management-a4jqueue) but the clientside event just aren't working for me.
onevent
onbeforedomupdate
oncomplete
neither of them seem to work. Am I missing something? The Ajax request are using the unnamed queue specified outside the form - the requestDelay makes this obvious.
But, <a4j:queue onrequestdequeue="alert('test');" requestDelay="2000"/> is working (and onrequestqueue as well)
-
4. Re: a4j:queue - onbeforedomupdate not firing
bravocharlie Nov 20, 2011 1:40 PM (in response to mcmurdosound)Yes I found the same - onrequestdequeue works, but none of the "useful" events seem to fire!