1 Reply Latest reply on Aug 6, 2009 9:45 PM by Nicklas Karlsson

    Excel Spreadsheet Rendering - Iterating in <e:column>?

    Shane Ayerst Newbie

      Hello All,


      When I render the following (test) spreadsheet, the result comes back with a single number (resultCount) only:


      <e:workbook
       xmlns:e="http://jboss.com/products/seam/excel"
       xmlns:f="http://java.sun.com/jsf/core">
       <e:worksheet name="test">
         <f:facet name="header">
          <e:cell value="#{surveyResultsByDate.resultCount}" />
        </f:facet>
        <e:column value="#{surveyResultsByDate.resultList}" var="surveyResult">
         <e:cell value="#{surveyResult.comment}" />
        </e:column>
       </e:worksheet>
      </e:workbook>



      However if I more the iteration into the worksheet, the spreadsheet renders correctly, i.e. both resultCount and surveyResult.comment render:


      <e:workbook
       xmlns:e="http://jboss.com/products/seam/excel"
       xmlns:f="http://java.sun.com/jsf/core">
       <e:worksheet name="test" value="#{surveyResultsByDate.resultList}" var="surveyResult">
         <f:facet name="header">
          <e:cell value="#{surveyResultsByDate.resultCount}" />
        </f:facet>
        <e:column>
         <e:cell value="#{surveyResult.comment}" />
        </e:column>
       </e:worksheet>
      </e:workbook>



      Does anyone know what is incorrect with the first example? No exceptions are thrown and as far as I can tell the documentation says it should work. I am using Seam v2.1.2.


      Thanks,


      Shane