0 Replies Latest reply on Oct 12, 2007 12:11 PM by rdlk

    repeat columns inside dataTable or scrollableDataTable

    rdlk

      I'd like to create a table and have repeating columns inside this.
      I need to use rich:scrollableDataTable or rich:dataTable

      I thought I was able to do this with the code below

      <rich:scrollableDataTable
       height="#{showcaseDataModel.height}"
       width="#{showcaseDataModel.width}" id="itemList"
       rows="#{showcaseDataModel.displayRows}"
       value="#{showcaseDataModel.dataModel}" var="item"
       sortMode="multi">
      
      
       <a4j:repeat id="repeatColumns" value="#{complexShowcaseDataModel.headers}" var="col">
      
       <rich:column>
       <f:facet name="header">
       <h:outputText value="complexShowcaseDataModel.headers.description" />
       </f:facet>
       <h:outputText value="#{item.alpha}"></h:outputText>
       </rich:column>
      
      
       </a4j:repeat>
      
       </rich:scrollableDataTable>
      


      complexShowcaseDataModel.headers is a list of Objects.

      why doesn't it work?
      (the repeatition is instead working correctly in this code
      <a4j:repeat value="#{complexShowcaseDataModel.headers}" var="go">
      <h:outputText value="bang" />
      </a4j:repeat>
      

      )