I have a 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");
}
}
The f:ajax definition is (simplified):
<f:ajax event='click' onevent='checkStatus` listener="#{mrBean.handler}"/>
The ‘begin’ event doesn’t fire ever.
Any Idea?
P.S The success event does fire.
Thanks!
This is a known bug in MyFaces 2.0.5: MYFACES-3080
You can fix this by patching the jsf.js as stated in the issue comments or wait for 2.0.6 to be released.