Uploaded image for project: 'RichFaces'
  1. RichFaces
  2. RF-12351

rich:extendedDataTable frozen columns cause alternating row color to be out of sync with unfrozen part of table

    XMLWordPrintable

    Details

    • Steps to Reproduce:
      Hide
      1. Declare an extendedDataTable with following format:
         <rich:extendedDataTable
             rowClasses="standardTable_Row1,standardTable_Row2"
             .....
             frozenColumns="3"
             ......
             >
        
      2. implement css classes standardTable_Row1 and standardTable_Row2 that specify different colors for alternating table rows.
      3. Set frozenColumns property to 1 or higher
      4. Load an odd number of rows to the dataModel that the table binds to (row colors in frozen columns is out of sync with rows colors in unfrozen table part

      Reproducible in Metamer:

      1. deploy Metamer and open http://127.0.0.1:8080/metamer/faces/components/richExtendedDataTable/frozenColumns.xhtml
      2. set @frozenColumns to 1
      3. set @rowClasses to row1,metamer-ftest-class
      4. set @rows to 5
        • have: row colours in frozen columns is out of sync with rows colours in unfrozen table part
      Show
      Declare an extendedDataTable with following format: <rich:extendedDataTable rowClasses= "standardTable_Row1,standardTable_Row2" ..... frozenColumns= "3" ...... > implement css classes standardTable_Row1 and standardTable_Row2 that specify different colors for alternating table rows. Set frozenColumns property to 1 or higher Load an odd number of rows to the dataModel that the table binds to (row colors in frozen columns is out of sync with rows colors in unfrozen table part Reproducible in Metamer: deploy Metamer and open http://127.0.0.1:8080/metamer/faces/components/richExtendedDataTable/frozenColumns.xhtml set @frozenColumns to 1 set @rowClasses to row1,metamer-ftest-class set @rows to 5 have: row colours in frozen columns is out of sync with rows colours in unfrozen table part

      Description

      The rich:extendedDataTable component, has a problem when I specify 1 or more frozen columns and use the rowClasses property to specify alternating row colors: When the table has an odd number of rows, the row colors of the frozen column section is out of sync with the unfrozen rows of the remainder of the table. Everything is fine when the table has an even number of rows or I don't use frozen columns.

      Below is an excerpt of the extendedDataTable declaration which causes the issue:

      <rich:extendedDataTable
      rowClasses="standardTable_Row1,standardTable_Row2"
      .....
      frozenColumns="3"
      ......
      >

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                michpetrov Michal Petrov
                Reporter:
                sansaric Marc Sansa
              • Votes:
                3 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: