Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
1.1.5
-
None
-
None
-
Suse Linux 10.0 - with Firefox 1.5.0.10
Description
I started from the example presented in the public site.
I click on the button, a new page is poped, then that page is blank.
Without knowing what happened, the file is saved in the background where it usualy saves the downloaded files.
I come with a correction for the class ExcelExportPhaseListener
private void writeExcelOutput(
HSSFWorkbook workBook,
HttpServletResponse response,
HtmlDataTable dataTable) throws IOException
Changes in behavior:
- the downloaded file is named using the id of the component prefixed with .xls
- a popup is presented to allow us between the options "run / save as"
Changes in code:
- the headers, very important being the "Content-disposition"
- the number of the arguments is changed.
I have previous experience with downloading excel file but using servlets.
I am using JSF but writing JSF exceeds my knowledge.