2 Replies Latest reply on Dec 9, 2008 10:41 PM by Ben Moore

    Passing conversation context variables while generating seam-excel

    infinity2heaven Novice

      I'm using Seam Excel and it works fine if I have the DataModel (searchResults) in session scope (even seam-excel example has a session scoped sfsb variable). However if my DataModel is Conversation scoped, I get the following error while generating excel: -


      org.jboss.seam.excel.ExcelWorkbookException: A worksheet's value must be an Iterable, DataModel or Query


      The export excel link is present in report.xhtml like this (renders reportExcel.xhtml)


      <h:outputLink value="reportExcel.seam">
         <h:graphicImage value="/img/excel.gif"/>
      </h:outputLink>

                          


      reportExcel.xhtml is a simple spreadsheet using seam-excel's <e:workbook> tags.


      <e:worksheet name="Matrix" value="#{searchResults}" var="fpd"
       ....
      </e:worksheet>



      and I do not have any entry in pages.xml for reportExcel.xhtml.


      I understand that when reportExcel.xhtml is rendered for the first time, searchResults (conversation scoped) is invalidated. How do I pass these variables to reportExcel.xhtml?
      (as it doesn't really have a backing sfsb)