Hi,
I have a listener to create an Excel document when a user click on an item menu like :
HSSFWorkbook wb = exportManager.exportDataTablesAsExcel(); //create the Excel book
String contentType = "application/vnd.ms-excel";
HttpServletResponse response = (HttpServletResponse) facesContext.getExternalContext().getResponse();
response.setContentType(contentType);
response.setHeader("Content-Disposition", "filename=\"" + exportManager.getFilename()+ "\"");
ServletOutputStream out = response.getOutputStream();
wb.write(out);
facesContext.getApplication().getStateManager().saveSerializedView(facesContext);
facesContext.responseComplete();
it's working well but just after when the user click on a ajax resquest component the screen disapear to take place to a blank page with some funny characters like : ÐÏࡱá
Do you have any idea to resolve this problem ?