Re: onsumit not exeucted for ajax requests - alternative?

2012-02-06 Thread Werner Punz
Definitely, our queue mechanisms just implement the bare necessities, but advanced queuing like multiple queues are in the Richfaces Queues to my knowledge, it might be the better choice. Werner Am 06.02.12 16:00, schrieb Michael Heinen: Werner, thanks for the explanation and pointing me to t

Re: onsumit not exeucted for ajax requests - alternative?

2012-02-06 Thread Michael Heinen
Werner, thanks for the explanation and pointing me to the Blog! I'll have a look any play around with this. Maybe RichFaces Queues are also an alternative for me because most of my ajax commands are from Richfaces. Thanks, Michael Am 06.02.2012 14:47, schrieb Werner Punz: > You can use the gl

Re: onsumit not exeucted for ajax requests - alternative?

2012-02-06 Thread Werner Punz
> You can use the global listeners however, set yourself a marker class or > an attribute in your form element which should trigger the listener > and if you get an ajax request you can check for this marker whether you > should intercept with your code or not. Just forgot to mention in your case

Re: onsumit not exeucted for ajax requests - alternative?

2012-02-06 Thread Werner Punz
The onsubmit is a simple callback coming from the dom tree, it is not executed during ajax because there is no form submit performed. Have in mind on some browsers you dont even get the event with special dom configurations (aka, simple form posts not by submit buttons etc...) or the event cann

Re: onsumit not exeucted for ajax requests - alternative?

2012-02-06 Thread Michael Heinen
Thanks Werner for the suggestion. I created meanwhile a JIRA issue for this: https://issues.apache.org/jira/browse/MYFACES-3460 A global js listener is unfortunately not what I need. In my case it depends on the form, whether a js should be executed during submission or not. Some requests can

Re: onsumit not exeucted for ajax requests - alternative?

2012-02-06 Thread Werner Punz
Hi if you need to execute commands before any arbitrary ajax call then you can add your own global ajax request listener via jsf.ajax.addOnEvent(callback) The callback is called three times per request, same as if you would set it directly within the request, but on a global scale. http://docs.