I have a JSF2 application linking to static Excel files on the server's filesystem. The link is a simple html like this:
<a href="#{bean.getExcelLink(auction)}">Excel File</a>
This works well with Chrome and Firefox, and also on IE when the application is running in Tomcat on my local Windows 7 machine. But when on the staging environment, which is Linux with Jboss AS 7.0.1 Final, IE tries to open the Excel file in its own window and produces a bunch of garbage characters.
Again, the problem is only on IE when the application is running on Linux with Jboss AS.
Any idea on what's going on and how to solve it?