11 Replies Latest reply on Apr 7, 2011 10:26 AM by V. V.

    richdataTable : Header in every row

    V. V. Newbie

      Hi all, I want to implement datatable in witch headers will be in every row, could anybody help me?

       

       

      Header 1value (not header, defult row color)
      Heder2
      value
      Header 2
      value
      Header 3value
      Header 3
      value
      Header 4
      value

      value

      value
      ...


       

      I tried this way, but it doesn''t works:

       

      <rich:dataTable width="100%" style="margin-top:10px;"

                                          var="pctItem" value="#{pctForm.pct}">

       

                                          <rich:columnGroup>   

                                                  <rich:column>  

                                                       <f:facet name="header">

                                                            <h:outputText value="header1"/>  

                                                       </f:facet >

                                                  </rich:column>       

                                              <rich:column>

                                                  <h:outputText value="value1"/>

                                              </rich:column>

                                                       <f:facet name="header">

                                                            <h:outputText value="header2"/>  

                                                       </f:facet >

                                              <rich:column>

                                                  <h:outputText value="value2"/>

                                              </rich:column>

                                          </rich:columnGroup>

      ..........

      </rich:dataTable>