3 Replies Latest reply on Apr 14, 2010 4:58 PM by Michel Thai

    Excel - Dynamic columns

    Michel Thai Newbie
      Hi,

      I would like to export on excel a table with dynamics columns.
      I was tried to use ui:repeat on e:workbook but doesn't work and i'm looking for un taglib like rich:columns but not exist..



      `<e:worksheet value="#{listPerson}" var="person">
              <e:column>
                      <f:facet name="header">
                              <e:cell value="name"/>
                      </f:facet>
                      <e:cell value="#{person.name}"/>
              </e:column>
              <e:column>
                      <f:facet name="header">
                              <e:cell value="First Name"/>
                      </f:facet>
                      <e:cell value="#{person.firstName}"/>
              </e:column>
             
              <ui:repeat value="#{person.listTel}" var="tel">
                      <e:column>
                              <f:facet name="header">
                                      <e:cell value="Mobile Phone"/>
                              </f:facet>
                              <e:cell value="#{tel.mobile}"/>
                      </e:column>      
                      <e:column>
                              <f:facet name="header">
                                      <e:cell value="Work Phone"/>
                              </f:facet>
                              <e:cell value="#{tel.work}"/>
                      </e:column>
              </ui:repeat>
      </e:worksheet>`

      I can export de persons list with name, first name but i can't get their phone list...

      Any idea which can help me to get this, please?

      Thank you =)