Ask Questions and Find Answers
Important:
Ask is now read-only. You can review any existing questions and answers, but not add anything new.
But - don't panic! While ask is no more, we've replaced it with discuss - the new Liferay Discussion Forum! Read more here here or just visit the site here:
discuss.liferay.com
Is there a workaround to use p:fileDownload?
Hello,
I am currently developing a JSF Portlet using Primefaces 6.2 and Liferay 7.0. One requirement is to download files, for which I am using p:fileDownload.
The download itself works but since it takes some time, I want to block the page while downloading. Originally this should be covered by using the component's PrimeFaces.monitorDownload(start, stop);. But unfortunately the stop method is never called.
While looking for a solution I found https://issues.liferay.com/browse/FACES-1513 which mentions a portlet incompatibility.
Sine the issue is pretty old I wanted to ask if there is any solution or workaround available now?
Kind Regards,
Bernd
I am currently developing a JSF Portlet using Primefaces 6.2 and Liferay 7.0. One requirement is to download files, for which I am using p:fileDownload.
The download itself works but since it takes some time, I want to block the page while downloading. Originally this should be covered by using the component's PrimeFaces.monitorDownload(start, stop);. But unfortunately the stop method is never called.
While looking for a solution I found https://issues.liferay.com/browse/FACES-1513 which mentions a portlet incompatibility.
Sine the issue is pretty old I wanted to ask if there is any solution or workaround available now?
Kind Regards,
Bernd
Hi Bernd,
I remember working on the fix to FACES-1513 and was unable to fix the {{PrimeFaces.monitorDownload(start, stop)}} problem due to portlet environment incompatibilities with the way PrimeFaces uses cookies to track the download. I wish I had a solution for you but sadly I don't.
Kind Regards,
Neil
I remember working on the fix to FACES-1513 and was unable to fix the {{PrimeFaces.monitorDownload(start, stop)}} problem due to portlet environment incompatibilities with the way PrimeFaces uses cookies to track the download. I wish I had a solution for you but sadly I don't.
Kind Regards,
Neil
Copyright © 2025 Liferay, Inc
• Privacy Policy
Powered by Liferay™