在我的項目中,我使用RichFaces。a4j:狀態隱藏狀態不起作用
當我點擊a4j:commandButton
按鈕(用於將頁面另存爲pdf)時,a4j:status會顯示在頁面上,然後打開pdf窗口並顯示Cancel和Ok按鈕。我繼續點擊Ok按鈕。
之後,仍然顯示Ajax加載器。即使手動刷新頁面,它也不會隱藏。
這裏是我的代碼:
<a4j:commandButton id="pdfButton" status="ajaxStatus"
image="#GeneralPageAttributes.pdfImage}"
title="#{platform.clickToPdfLabel}"
alt="ExportPDF"
onclick="selectedText(#{fileContentDiv})"
action="#{FileViewer.pdfBeforePerformAction}"
reRender="bottomOutputPanelId"/>
<a4j:status id="ajaxStatus" onstart="#{rich:component('fileViewerProgressModalPanel')}.show();"
onstop="#{rich:component('fileViewerProgressModalPanel')}.hide();" />
<rich:modalPanel id="fileViewerProgressModalPanel"
shadowOpacity="0"
autosized="true"
style="background:none;border:none;"
moveable="true">
<h:graphicImage url="#{GeneralPageAttributes.progressBarImage}"/>
</rich:modalPanel>
任何想法如何隱藏A4J:狀態PDF窗口關閉後?