3 Replies Latest reply on Feb 13, 2009 12:39 PM by Jay Horita

    Datatable having extraneous Header column?

    Jay Horita Newbie

      Hello,

      I have the following code:

      <a4j:form>
       <rich:dataTable value="#{ReferencePage.testRows}">
       <rich:column id="row1">
       <f:facet name="header">
       <h:outputText value="A"/>
       </f:facet>
       <h:outputText value="1"></h:outputText>
       </rich:column>
       <rich:column id="row3">
       <f:facet name="header">
       <h:outputText value="B"/>
       </f:facet>
       <h:outputText value="2"></h:outputText>
       </rich:column>
       <rich:columnGroup>
       <rich:column id="row2" colspan="2">
       <h:outputText value="3"></h:outputText>
       </rich:column>
       </rich:columnGroup>
       </rich:dataTable>
      
       </a4j:form>
      


      .. and, for some reason, I'm getting a datatable with an extraneous header column as such:


      -------------
      | a | b | |
      -------------
      | 1 | 2 |
      ---------
      | 3 |
      ---------


      .. I think it has something to do with the columnGroup being there. Is what I'm doing valid? Or am I doing something wrong?

      Thank you.[/img]