2 Replies Latest reply on Apr 7, 2010 2:49 PM by William Hardwick

    rich:dataTable column header/footer not working properly

    William Hardwick Newbie

      For some reason, <f:facet name="header"> is not outputting a column header.  It puts the enclosed text as additional text within the regular column field.  Here is the code:

       

      <rich:dataTable value="#{productManager.productList}" var="product" rows="5" ajaxKeys="#{repeater.ajaxedRowsSet}">
        <f:facet name="caption">
          <h:outputText value="caption" />
        </f:facet>
        <f:facet name="header">
          <h:outputText value="Products"/>
        </f:facet>
        <rich:column id="pid">
          <f:facet name="header">Product ID</f:facet>
          <h:outputText value="#{product.id}"/>
        </rich:column>
        <rich:column id="pname">
          <f:facet name="header">Product Name</f:facet>
          <h:outputText value="#{product.name}"/>
        </rich:column>
        <f:facet name="footer">
           <h:outputText value="footer"/>
        </f:facet>

      </rich:dataTable>

       

      The DataTable will print the caption, the table header and the two columns without header or footer values.  The values of the header and footer are actually repeated prefixing and postfixing the column data for the whole table.

       

      Can anyone see what I'm doing wrong?

       

      Thanks!