4 Replies Latest reply on Jun 23, 2009 12:52 AM by Mark LoSacco

    Trouble rendering Excel file, render succeeds, but no file

    Mark LoSacco Newbie

      In my application I am already able to successfully render Excel files from rich:dataTable's using excelExporter.export.

      I am now trying to create and render an Excel document using the Seam excel tags, but although the render call comes back without error, no document appears to be generated.

      Here is the document I am trying to render:

      <e:workbook xmlns:e="http://jboss.com/products/seam/excel">
           <e:worksheet name="Developers">
                <e:cell column="0" row="0" value="Daniel Roth"/>
                <e:cell column="0" row="1" value="Nicklas Karlsson"/>

      My code that does the render:

          public boolean export() {
                try {
                     facesMessages.add("Excel export successful"); 
                } catch (Exception e) {
                    facesMessages.add("Excel export failed: " + e.getMessage());
                    return false;
                return true;

      I have added the following to my components.xml:

         <document:document-store use-extensions="true"/>

      And my web.xml contains:

          <servlet-name>Document Store Servlet</servlet-name> 
          <servlet-name>Document Store Servlet</servlet-name> 
          <servlet-name>Document Store Servlet</servlet-name> 

      What could I be missing?  Must be a problem with my configuration that does not affect the ability to export from rich:dataTable...

      Much appreciate if anyone has any suggestions.