This is using RichFaces 3.3.1
I have a small app that searches for various files and returns results. The user can either download the files they shorts, or the results as a CSV. I simply cannot get the file download to work correctly in Internet Explorer. I have tried various things and get different problems.
Server Code
This is intended to provide the results as a correctly formatted CSV upon receipt of a user request.
JSP
If I have a command button like this
or this
The CSV appears in the browser (FireFox or Internet Explorer) itself as plain text. The CSV looks correct, but I do not get prompted for file download like I would expect.
If I have a command button (or command link) like this
Then I get the file download prompt, but whilst FireFox works perfectly, the download progress bar in Internet Explorer appears briefly then just vanishes and there is no download.
Does anyone know what I could be doing wrong - I am sure it is something simple.
Thanks in advance.