I am getting an exception trying to poll with PrimeFaces. I'm using solution #1 from Primefaces fileUpload and session timout.
javax.faces.FacesException: class java.lang.Long is not supported as "interval" for p:poll
<p:fileUpload id="fileUploadControl" oncomplete="PF('xmlUploadDialog').hide()"
listener="#{xmlUploadBean.handleFileUpload}" mode="advanced"
allowTypes="/(\.|\/)(xml|zip)$/" update=":mainForm:scriptTableId"
multiple="true" />
<p:poll interval="#{session.maxInactiveInterval - 10}" async="true" />