I have commandButton
on my .xhtml page:
<p:commandButton action="#{someone.doSomething()}" ajax="true" onerror="errorDialog.show();"> </p:commandButton>
It just makes an Ajax call. How can I detect situations such as an Internet connection problem (client / browser), timeout, session timeout, server-side exceptions, crashes, etc. In the middle of an Ajax call to show an informational message to the user?
Does the onerror
p:ajax
attribute onerror
all of these? If not, then what? :) What is the default btw timeout value?
Any thanks, thanks.
Murat Derya Γzen
source share