1

Is it possible to download multiple files at once using PrimeFaces p:fileDownload

What I had in mind would be like

  <p:commandButton value="Download All Documents" 
                             styleClass="GreenButton" 
                             icon="fa fa-download" 
                             title="Download all documents, generated and uploaded."
                             onclick="PrimeFaces.monitorDownload(null, hideLoader);"
                             update=":growl">
 <!-- code Here 
        < ui:repeat> p:downloadFile (file) </ui:repeat>
--> 
            </p:commandButton>

I have a list of documents that needs to be dynamically, the list will differ so should be dynamically. Is there a way to do this and so how?

Paolo Forgia
  • 6,572
  • 8
  • 46
  • 58
Tinus Jackson
  • 3,397
  • 2
  • 25
  • 58

1 Answers1

1

I would not annoy the user with multiple downloads. Just create a zip file containing your files.

See:

Community
  • 1
  • 1
Jasper de Vries
  • 19,370
  • 6
  • 64
  • 102