F: ajax does not fire for onevent begin event

I have f:ajax with onevent="checkStatus" with the following implementation:

 function checkStatus(event){ if (event.status == "begin") { console.log("ajax begin"); } else if (event.status == "success") { console.log("ajax success"); } } 

Definition of f:ajax (simplified):

 <f:ajax event='click' onevent='checkStatus` listener="#{mrBean.handler}"/> 

The start event does not fire. Any idea?

PS The success event is fired.

Thanks!

+4
source share
1 answer

This is a known bug in MyFaces 2.0.5: MYFACES-3080

You can fix this by fixing jsf.js as indicated in the comments on the problem, or wait until 2.0.6 is released.

+2
source

All Articles