aspose file tools*
The moose likes JSF and the fly likes How to refresh a JSF page after downloading a CSV file.(content-disposition) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSF
Bookmark "How to refresh a JSF page after downloading a CSV file.(content-disposition)" Watch "How to refresh a JSF page after downloading a CSV file.(content-disposition)" New topic
Author

How to refresh a JSF page after downloading a CSV file.(content-disposition)

ranjan Khaba
Greenhorn

Joined: Jan 16, 2008
Posts: 22
Hi,
The web application has an export button which will download the csv file to the client machine (content-disposition). After completing the csv file download to the client machine, how can I refresh the JSF page. The file transfer is done by using the Servlet.

The logic to refresh the page automatically can not be used here because the user cannot perform any of the operation until the current operation is not completed.

Getting it as a response from the Servlet thread

http://www.coderanch.com/t/432961/JSF/java/JSF-page-refresh-after-csv

"You can send only one response per request.
Here you want to send two responses: one for the CSV file and another for the reload.
So you need to fire two requests. You can use Javascript to fire the another request."

Can anybody share some more info.



Thanks in advance,
Ranjan
Bauke Scholtz
Ranch Hand

Joined: Oct 08, 2006
Posts: 2458
Why are you doubleposting? Why don't you continue in the original thread?
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: How to refresh a JSF page after downloading a CSV file.(content-disposition)
 
Similar Threads
How to refresh the page after the reponse has been committed
probelom while usuing content-disposition in response.setHeader()
redirect from jsp after download
Multiple response for a request
JSF page refresh after csv file download.(POI)