I am right now migrating from richfaces 3.3.3 to 4.1.
The 3.3.3 Ajax4jsf handlers are not working anymore in 4.1
3.3.3:
A4J.AJAX.onError=function(req,status,message) {...}
Now I tried jsf.ajax.addOnError(myEventHandler) but this is also not working.
It throws a Javascript error on every page: "Error: 'jsf' is undefined".
How do I get this working with JSF 2 (myFaces) and Richfaces 4.1 ?
Script import solved the issue:
<h:outputScript name="jsf.js" library="javax.faces"/>