轮询工作时隐藏 ajax 加载符号
hide ajax loading symbol when poll working
我想在投票内容运行时隐藏加载符号。这是我的代码
<h:form id="indexForm" enctype="multipart/form-data">
<p:growl autoUpdate="true"/>
<p:ajaxStatus style="width:60px;height:60px;position:fixed;right:5px;top:5px" >
<f:facet name="start" >
<p:graphicImage value="resources/resimler/loading.gif" />
</f:facet>
<f:facet name="complete">
<h:outputText value="" />
</f:facet>
</p:ajaxStatus>
<p:poll id="poll" ignoreAutoUpdate="true" interval="5" process="@this,sevk" update="islemler,sevk" partialSubmit="true" rendered="true" />
</h:form>
将 poll 的全局属性设置为 false(参见 http://primefaces.github.io/primefaces/7_0/#/components/poll?id=poll)。
我想在投票内容运行时隐藏加载符号。这是我的代码
<h:form id="indexForm" enctype="multipart/form-data">
<p:growl autoUpdate="true"/>
<p:ajaxStatus style="width:60px;height:60px;position:fixed;right:5px;top:5px" >
<f:facet name="start" >
<p:graphicImage value="resources/resimler/loading.gif" />
</f:facet>
<f:facet name="complete">
<h:outputText value="" />
</f:facet>
</p:ajaxStatus>
<p:poll id="poll" ignoreAutoUpdate="true" interval="5" process="@this,sevk" update="islemler,sevk" partialSubmit="true" rendered="true" />
</h:form>
将 poll 的全局属性设置为 false(参见 http://primefaces.github.io/primefaces/7_0/#/components/poll?id=poll)。