删除primefaces中的轮询图标

删除primefaces中的轮询图标,primefaces,icons,primefaces-mobile,Primefaces,Icons,Primefaces Mobile,如何隐藏primefaces投票图标?我的投票间隔是1秒,所以它每秒钟出现一次都很烦人。我应该使用类属性吗 我当前的代码: <pm:content> <h:form> <h:outputScript library="primefaces/poll" name="poll.js"/> <p:outputLabel id="idCurrentOnlineTime" value="Current Online Time

如何隐藏primefaces投票图标?我的投票间隔是1秒,所以它每秒钟出现一次都很烦人。我应该使用类属性吗

我当前的代码:

<pm:content>
    <h:form>
        <h:outputScript library="primefaces/poll" name="poll.js"/>
        <p:outputLabel id="idCurrentOnlineTime" value="Current Online Time : #{partnerPromotion.currentOnlineTime}s"/>
        <p:outputLabel id="idTotalOnlineTime" value="Total Online Time : #{partnerPromotion.totalOnlineTime}s"/>            
        <p:poll  interval="1" update="idCurrentOnlineTime,idTotalOnlineTime"  />
    </h:form>
</pm:content>
p:民意测验本身没有任何视觉表现。您可能在同一页上有类似于p:ajaxStatus的内容。您可以指定:

<p:poll global="false" ...

,则其请求不会触发p:ajaxStatus。

不要使用轮询,使用WebSocket。更现代、更经得起未来考验的etcI将使用它进行服务器通知。但在这里,它只是一个计时器。我想我只能在客户端使用javascript,但为了简单起见,因为我不知道我使用的poll.js有多大。为什么要手动添加poll.js?PrimeFaces负责包含其脚本。不幸的是,PrimeFaces移动版不需要这样做