79396705

Date: 2025-01-29 12:23:30
Score: 1
Natty:
Report link

We use a <p:filedownload> wrapped by a command button for that purpose, our beans are ViewScoped or RequestScoped

 <p:commandButton ajax="false" immediate="true">
  <p:fileDownload value="#{controller.getMedia()}"/>
 </p:commandButton>
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: cyanotyp