I have a JSF button (in PrimeFaces)
<h:commandButton value="Download Report" action="#mybean.downloadReport}"
disabled="#{mybean.processing}" styleClass="buttons" />
At the very beginning, mybean.processing is true so the 'download' button is disabled. After a while processing finishes so the button should be 'enabled' So I need a mechanism to periodically check the bean status to refresh the UI.
I know p:poll works but that requires an explicit ajax, is there any other way to do it?