12 Replies Latest reply on Jan 24, 2012 5:07 PM by Brian Leathem

    Datatable footer doesn't use all columns when header specifies columnGroup?

    Karsten Wutzke Expert

      Hello,

       

      I have a data table with a data scroller:

       

      {code}

      <rich:dataTable value="#{repoHome.externalDocumentGroups}" var="companyFileGroup">

        <f:facet name="header">

          <rich:columnGroup>

            <rich:column><h:outputText value="Firma" /></rich:column>

            <rich:column><h:outputText value="Dateiname" /></rich:column>

            <rich:column><h:outputText value="Ablaufdatum" /></rich:column>

            <rich:column><h:outputText value="Entfernen" /></rich:column>

          </rich:columnGroup>

        </f:facet>

        <f:facet name="footer">

          <rich:dataScroller />

        </f:facet>

      </rich:dataTable>

      {code}

      which renders like this:

       

      dt-with-colgroup-ds.png

      As you can see the datatable footer doesn't use all columns.

       

      When adding a collapsible sub table, it's even stranger. Code:

      {code}

      <rich:dataTable value="#{repoHome.externalDocumentGroups}"

                      var="companyFileGroup"

                      rows="20"

                      width="100%"

                      styleClass="full-width"

                      id="repo-edoc-datatable">

        <f:facet name="header">

          <rich:columnGroup>

            <rich:column><h:outputText value="Firma" /></rich:column>

            <rich:column><h:outputText value="Dateiname" /></rich:column>

            <rich:column><h:outputText value="Ablaufdatum" /></rich:column>

            <rich:column><h:outputText value="Entfernen" /></rich:column>

          </rich:columnGroup>

        </f:facet>

        <rich:collapsibleSubTable var="doc" value="#{companyFileGroup.documents}" rowKeyVar="rowNbr">

          <rich:column rowspan="#{companyFileGroup.numDocuments}" rendered="#{rowNbr eq 0}">

          </rich:column>

          <rich:column>

          </rich:column>

          <rich:column>

          </rich:column>

          <rich:column>

          </rich:column>

        </rich:collapsibleSubTable>

        <f:facet name="footer" styleClass="center">

          <rich:dataScroller />

        </f:facet>

      </rich:dataTable>

      {code}

      The above renders like this:

      dt-with-colgroup-ds-2.png

      Here the last column isn't taken into account.

       

      Is this a RF 4 bug?

       

      Karsten