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
Copy&paste bug in docs or something, I'll fix. You should iterate on worksheet level and not in columns.