jsf - p:fileDownload to be executed at the end -


i need propertyactionlistener set correct variable prepdownloadbalanceteii method (this method creates pdf file). after that, want download pdf.

what getting property being set correctly, file being downloaded before prepdownloadbalanceteii method called.

 <p:commandlink id="downloadbalancete" value="balancete" ajax="false" action="#{reportscontroller.prepdownloadbalanceteii}">                             <f:setpropertyactionlistener value="#{object}" target="#{reportscontroller.accountingperiod}" />                             <p:filedownload value="#{reportscontroller.download}" />                         </p:commandlink> 

anyway can make work here?

thank you.

the action method triggered after download logic executed. use actionlistener instead of action in commandlink. actionlistener prepare file stream p:filedownload.


Comments

Popular posts from this blog

c# - Better 64-bit byte array hash -

webrtc - Which ICE candidate am I using and why? -

php - Zend Framework / Skeleton-Application / Composer install issue -