Handling ajax errors with jsf.ajax.addOnError

How to jsf.ajax.addOnErrorreally catch mistakes? I did not find any information about this mechanism. I just found it to be an error listener.

+3
source share
1 answer

Wherever you find a statement that you jsf.ajax.addOnErrorare an error listener, this source is erroneous. The function addOnErroradds an error listener (i.e., a function that you define yourself and that is called whenever an error occurs in the JSF system).

This is straight from the JSF-2.2 spec, 13.3.6.2 :

jsf.ajax.addOnError JavaScript, , / Ajax. [P1-start-event] , JavaScript , 14-5 "". [P1-end]

, "errors" , . :

  • httpError: == null request.status == undefined request.status < 200    request.status >= 300
  • serverError: Ajax "error".
  • malformedXML: Ajax .
  • emptyResponse: Ajax.

JSF Ajax , . , , , , , , ( , , ).

+1

All Articles