2 Replies Latest reply on Sep 17, 2009 2:16 PM by jinpsu

    Footer rendering problem with dataTable and subTable

      I'm having trouble rendering a dataTable footer so that it spans across the entire table. My table looks similar to this:

      <rich:dataTable rowClasses="hidden" var="rowEntry" value="#{bean.list}">
       <f:facet name="header">
       <rich:columnGroup>
       <rich:column colspan="1">
       <h:outputText value="Col 1"/>
       </rich:column>
       <rich:column colspan="1">
       <h:outputText value="Col 2"/>
       </rich:column>
       <rich:column colspan="1">
       <h:outputText value="Col 3"/>
       </rich:column>
       </rich:columnGroup>
       </f:facet>
      
       <rich:subTable value="rowEntry.subList" var="subEntry" rowKeyVar="rowIdx">
       <rich:column rowspan="fn:length(rowEntry.subList)" visible="#{rowIdx == 0}">
       <h:outputText value="rowEntry.name"/>
       </rich:column>
       <rich:column>
       <h:outputText value="subEntry.data1"/>
       </rich:column>
       <rich:column>
       <h:outputText value="subEntry.data2"/>
       </rich:column>
       </rich:subTable>
      
       <f:facet name="footer">
       <h:panelGroup>
       <h:commandButton value="Button 1"/>
       <h:commandButton value="Button 2"/>
       </h:panelGroup>
       </f:facet>
      </rich:dataTable>
      

      For the life of me, I can't get the footer to span all 3 columns. The html shows colspan="2". I'm assuming RF is using 2 because the last column displayed only had 2 visible columns.

      Any ideas? (I'm using 3.3.1.GA)

      Thanks.