I currently have a JSF popup that: 1. notifies the user to wait for a download to begin 2. uses Javascript (window.location = uriStr;) to redirect the page to my download servlet that compiles tha data and writes back a "csv/plain" response (using ServletOutputStream).
It seems like there should be a better (cleaner) way to do this with MyFaces. I haven't had any luck finidn a solution. Any suggestions? Thank you for your time.

