jsf - get informed about ajax error in p:ajaxStatus -
i have ajax-operations, , if execute 1 method, ajax-status displays me "error". have no idea, did fail. have ideas, how can fetch ajax-error-message in case there 1 solve problem?
<!-- ajax-status info --> <p:ajaxstatus style="width:64px;height:64px;position:fixed;right:5px;bottom:5px" id="aj"> <f:facet name="start"> <p:graphicimage value="resources/images/loading.gif" /> </f:facet> <f:facet name="complete"> <h:outputtext value="complete" /> </f:facet> <f:facet name="prestart"> <h:outputtext value="starting..." /> </f:facet> <f:facet name="error"> <h:outputtext value="error" /> </f:facet> <f:facet name="success"> <h:outputtext value="success" /> </f:facet> <f:facet name="default"> <h:outputtext value="ready" /> </f:facet> </p:ajaxstatus> i can't fix problem due fact don't know did crash. method called by
<h:selectbooleancheckbox value="#{bean.booleanfield}" id="myonoffswitch" styleclass="onoffswitch-checkbox"> <f:ajax event="click" render=":main" execute="@form" listener="#{bean.reload}"/> </h:selectbooleancheckbox> public void reload(ajaxbehaviorevent event){...} and reload() method executed without errors, finished without problems.
somewhere after problem must occur? if switch button on, ajax status works fine. if switch button off, says "error".
any suggestions?
Comments
Post a Comment