KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I would like to display ajaxStatus while zipManager.makeZip() is executed... until the download starts. if ajax=false, the file download works but ajaxStatus not displayed. if ajax=true, ajaxStatus is displayed but download not working! Any idea how to make the ajaxStatus and fileDownload work together. Thanks in advance kem <h:form id="form"> <p:commandLink id="download" value="Download" onstart="showStatus()" oncomplete="hideStatus()" actionListener="#{zipManager.makeZip()}"> <p:fileDownload value="#{zipManager.zip}"/> </p:commandLink> </h:form> <p:ajaxStatus id="status" widgetVar="st" style="position:fixed;right:50%;bottom:50%"> <f:facet name="start"> <p:graphicImage value="images/wait.gif" /> </f:facet> </p:ajaxStatus>
Tags (comma-separated)
Save Edits
Cancel