0 Replies Latest reply on Oct 26, 2007 10:53 AM by Christian SCHERER

    Create Excel doc and AJAX problem

    Christian SCHERER Newbie


      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.setHeader("Content-Disposition", "filename=\"" + exportManager.getFilename()+ "\"");

      ServletOutputStream out = response.getOutputStream();

      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 ?