2 Replies Latest reply on May 27, 2010 8:00 PM by jmchiaradia

    Seam Excel error

    elfuhrer

      I'm generating a report from a number of list retrieved in seam. However I can iterate over columns as indicated in the documentation, example


      <e:column value="#{personList}" var="person">
          <f:facet name="header">
              <e:cell value="Last name"/>
          </f:facet>
          <e:cell value="#{person.lastName}"/>
      </e:column>



      Iterating over worksheets works fine and I can get the output in the format I want.


      Now what is more confusing is that the documentation states that the <e:column> tag does not support any inline attributes however the example snapshots are full of them.


      My question is basically simple, I need to iterate over a number of lists and put them in a single worksheet. Is that possible?

        • 1. Re: Seam Excel error
          elfuhrer

          After reviewing the code, I guess this is not possible without a workaround, the worksheet tag is bound to an DataModel, or Iterable or Map and all the records must be taken from that object.


          What about extending the excel module to support adding multiple lists, iterables, or datamodel from various sources. Probably a tag such as:




          <e:list value="#{bean.list} var="obj" startRow="0" startColumn="0" />
          




          would help? Any thoughts on that? Does anyone beside me find it useful?


          Cheers

          • 2. Re: Seam Excel error

            It could be usefull to me too!!!


            I have another issue:


            I don't know how to get working a formula like Sum(C2:CN)?


            Could anyone helpme?