3 Replies Latest reply on Oct 10, 2007 12:09 PM by amitev

    facets in scrollableDataTable

    lain

      Ok, since I can only sort in this table type, I immediately found the next problem.

      reference says:

      ...
      <rich:scrollableDataTable value="#{dataTableScrollerBean.allCars}"
      var="category">
      <!--...//Set of columns and header/footer facets-->
      </rich:scrollableDataTable>
      ...


      If I try to put this block into the scrollableDataTable

      <f:facet name="header">
       <rich:columnGroup>
       <rich:column>
       <h:outputText value="ID" />
       </rich:column>
       ...and some more ...
       </rich:columnGroup>
       </f:facet>


      that row is not displayed at all.

      If I put the header into the column

      <rich:column id="id">
       <f:facet name="header"><h:outputText value="ID" /></f:facet>
       <h:outputText value="#{listitem.id}" />
       </rich:column>


      I get a header, which looks...well...let's not talk about it. Setting the attribute styleClass in the scrollableDataTable does nothing so far.

      Is the ref.guide incorrect or how do I use facets in that table?

      thanks again
      /anja