0
非常相似,Show status on start of p:fileDownload and hide status when it is finished顯示狀態:當它完成出口國和隱藏狀態
但在這種情況下,我有一個是花費很長的時間來導出數據表,所以我需要的是PE:導出器在用戶單擊導出按鈕時顯示微調器或狀態,並在導出文件發送回客戶端時將其隱藏。
目前我導出按鈕看起來像:
<h:commandLink style="float:right;padding:3px;margin-top:2px;" immediate="true"
styleClass="fa fa-file-pdf-o" title="Export to PDF">
<pe:exporter type="pdf" encoding="iso-8859-1" target="datatable"
fileName="ExportResult"/>
</h:commandLink>
我Primefaces 6.0
您是否嘗試使用Ajax狀態?!? –
這裏沒有涉及到的ajax ...如果我明白你的問題,你正在搜索的東西,使得像一個加載狀態是你正在尋找什麼?出口商作出標準的POST http請求 –
? –