Remove poll icon in primefaces

167 Views Asked by At

How do you hide the primefaces poll icon ? My poll interval is 1s so it's quite annoying when it shows up every second. Should I work with the class attribut ?

My current code :

<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>
1

There are 1 best solutions below

0
Vsevolod Golovanov On

p:poll by itself doesn't have any visual representation. You probably have something like p:ajaxStatus on the same page. You can specify:

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

, then its requests won't trigger p:ajaxStatus.