kukeltje wrote:Read the topic Howard, an excel download is generated, so that can take a while and you do not want the user to press the button twice or more when being impatient
hmmm...
JuanRonline wrote:Hi, I have the next code, to export a datatable to excel:
Code: Select all
<p:dataExporter type="xls" target="table" fileName="reshotel"
postProcessor="#{reservasHotelController.postProcessXLS}" />
And I would like to
block the page, while the export excel is generating.
Ronald, I read the OP. Did OP say block the 'button' or 'page'? why would OP want to block the 'page'? Hmmm, target="table". Must be a datatable with multiple Excel buttons to click?
Why block a 'page' when/while one Excel report being generated? Excel report takes minutes (or many seconds) to generate?
Hmmm, when I go to Maven Central download website, is there a block-page, or I can download multiple files at a time? blocking a 'page' or even blocking a 'download' (or 'excel') button is abnormal on web pages/site that offer files to download.