2 Replies Latest reply on Nov 26, 2008 10:16 AM by wassup_lol

    Can I use ui:repeat inside rich:dataTable

      I am currently displaying database tables as is dynamically on one single page. So I don't have the column count when I design my page,

      <rich:dataTable id="twoTbl" value="#{tableData.data}" var="tableRow" styleClass="Table1" rowKeyVar="row">
      <h:column>
      <f:facet name="header">#{tableData.columnNames[0]}</f:facet>
      <h:outputText value="#{tableRow[0]}" />
      </h:column>
      <h:column>
      <f:facet name="header">#{tableData.columnNames[1]}</f:facet>
      <h:outputText value="#{tableRow[1]}" />
      </h:column>
      </rich:dataTable>

      Like above tableData has data as list of lists and a list of column names.

      Can somebody help me with this.

      Thanks.