have following issue: there p:remotecommand lazy loads p:datatable after page load, load indicator of "p:ajaxstatus" not shown during time of ajax request...
how make "p:ajaxstatus" shown on page when p:remotecommand sends request lazy loading of data?
code on page:
<h:form id="form"> <p:remotecommand name="loadlazydata" action="#{crmbackingbean.crmoncontrollazyinit}" autorun="true" process="@this" update="dtcrmoncontrol" /> <p:datatable id="dtcrmoncontrol" var="rowdata" value="#{crmbackingbean.crmoncontrollazy}" widgetvar="dtcrmoncontrol" rows="#{crmbackingbean.crmdtoncontrolrows}" paginator="true" ..... lazy="true" > ....................................................... </p:datatable> </h:form>
i use atlas theme, p:ajaxstatus located in original place, in template.xhtml:
<p:ajaxstatus style="width:40px; height:40px; position:fixed; right:30px; bottom:30px; z-index:999999;"> <f:facet name="start"> <i class="fa fa-circle-o-notch fa-spin green fs40"></i> </f:facet> <f:facet name="complete"> <h:outputtext value="" /> </f:facet> </p:ajaxstatus>
thank you!
versions: primefaces 6.0.2; primefaces atlas theme 1.1.1; glassfish 4.1.1 jsf 2.2.12 (mojarra)
the solutions following:
the tag <p:ajaxstatus>
should placed on xhtml source page before tag <p:remotecommand>
.
environment:
- primefaces 6.0.2
- primefaces atlas theme 1.1.1
- glassfish 4.1.1 jsf 2.2.12 (mojarra)
Comments
Post a Comment