3 Replies Latest reply on May 19, 2009 4:30 AM by Raphaël Lemaire

    Only display headers in first subtable  ?

    Raphaël Lemaire Newbie

      Hello rich faces users !

      I have a question for you.

      I have a rich:dataTable which include an inner rich:dataTable :

      <rich:dataTable value="#{firstCollection}" var="item" rowKeyVar="rowKey">
      <rich:column>
      ...
      </rich:column>
      <rich:column>
      <f:facet name="header">
      <h:outputText value="Azerty" />
      </f:facet>
      <rich:dataTable value="#{item.otherCollection}" var="item2" >
      <rich:column>
      <f:facet name="header" rendered="?">
      <h:outputText value="Qwetry" />
      </f:facet>
      ...
      </rich:column>
      </rich:dataTable>
      </rich:column>
      </rich:dataTable>

      For the inner data tables I only want the headers diplayed for the first row of the top level data table.

      Is there any clean way to do this ?