5 Replies Latest reply on Dec 2, 2009 9:56 AM by simonkelly

    Does richfaces support dynamic multiple tables

    nightwend

      I'd like to show a page with dynamic multiple tables, each table has different columns. I tried it to put the dataTable in a repeat but it seems the rich:columns is processed before ui:repeat.

      Any ideas?

      <ui:repeat value="#{MyBean.tables}" var="table">
       <rich:dataTable value="#{table.rows}" var="row">
       <rich:columns value="#{table.columns}" var="col" index="index">
       <f:facet name="header">
       <h:outputText value="#{col.title}" />
       </f:facet>
       <h:outputText value="#{row.get(index)}"/>
       </rich:columns>
       </rich:dataTable>
       <br />
       <br />
      </ui:repeat>