【发布时间】:2015-10-19 03:00:32
【问题描述】:
在我的项目中,我使用的是 RichFaces。
当我单击用于将页面保存为 pdf 的 a4j:commandButton 按钮时,a4j:status 会显示在页面上,然后 pdf 窗口打开并带有取消和确定按钮。我继续单击“确定”按钮。
之后仍然会显示 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>
知道如何在 pdf 窗口关闭后隐藏 a4j:status 吗?
【问题讨论】: