• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Jeanne Boyarsky
  • Ron McLeod
Sheriffs:
  • Paul Clapham
  • Liutauras Vilda
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

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

 
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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

https://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
 
Ranch Hand
Posts: 2458
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Why are you doubleposting? Why don't you continue in the original thread?
 
Can't .... do .... plaid .... So I did this tiny ad instead:
Smokeless wood heat with a rocket mass heater
https://woodheat.net
reply
    Bookmark Topic Watch Topic
  • New Topic