delete file after p:fileDownload executes

UI Components for JSF
Post Reply
mrr
Posts: 1
Joined: 28 Jul 2011, 23:11

04 Aug 2011, 21:58

Hello!!
I don't even know if this is possible, but I thought I would give it a shot. When using p:fileDownload it is downloading a file from a specific path, my question is once it is done downloading can we set a bean say #{blah.delete} where it will then delete the file from the path that was set to download? I had considered using an actionListener in my commandButton but if I do that it won't even reach the p:fileDownload portion...anyone have any suggestions??

Thanks!

User avatar
jim@jimtough.com
Posts: 142
Joined: 03 Jun 2011, 18:06
Location: Canada

05 Aug 2011, 02:28

Good question. I was discussing that with someone in this topic:
viewtopic.php?t=13988

If you find a solution please do tell.
PF 3.0,
Mojarra 2.1.4,
Tomcat 7.0.14,
Eclipse Indigo,
IE 7, Chrome

Image
http://stackoverflow.com/users/346112/jim-tough

Would rather be a Decepticon...

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 46 guests