Code: Select all
<p:commandButton id="findLatestSubmit" action="#{findLatestBacking.findLatest}" value="#{findLatestRes.findLatestButton}"
update="@form" onclick="resultProgressDialog.show();resultProgressBar.start()" />
<p:dialog id="resultProgressDialog" header="Processing..." modal="true" widgetVar="resultProgressDialog">
<p:progressBar id="resultProgressBar" ajax="true" widgetVar="resultProgressBar" value="#{findLatestBacking.mappingProgress}"
interval="1000" style="height: 3px" oncomplete="resultProgressDialog.hide()"
completeListener="#{findLatestBacking.handleProgressComplete}" cancelListener="#{findLatestBacking.handleProgressCancelled}"
onCompleteUpdate="@this, resultProgressDialog" />
</p:dialog>
is this know behaviour? how can I fix this? I have a cancelListener, but I can't see how I could tell the client there to stop polling.
TIA