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

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

c# - Better 64-bit byte array hash -

python - PyCharm Type error Message -