1 Reply Latest reply on Jun 5, 2008 7:52 AM by Alex Guru

    <rich:columnGroup/> and column headers  problem

    Alex Guru Newbie

      I'm using <rich:columnGroup/> to set different background to rows. If i use <f:facet name="header" /> for table all ok. But if i use <f:facet name="header" /> for column it don't render. Without <rich:columnGroup/> all work fine.
      Code:

      <rich:dataTable value="#{myBean.tableData}" var="row" rowKeyVar="row_key" rowClasses="row1, row2" >
      
       <rich:columnGroup rowClasses="#{row.error == null? ' ' : 'errorRow'}" >
      
       <rich:column style="text-align:center;">
       <f:facet name="header">
       <h:outputText value="#"/>
       </f:facet>
       <h:outputText value="#{row_key + 1}"/>
       </rich:column>
      
       <rich:column>
       <f:facet name="header">
       <h:outputText value="Name"/>
       </f:facet>
       <h:outputText value="#{row.name}"/>
       </rich:column>
      
       </rich:columnGroup >