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

Duplicate class attribute generated by extendedDataTable when a row is selected

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 4.0.0.Milestone6
    • Fix Version/s: 4.0.0.CR1
    • Component/s: component-tables
    • Labels:
      None
    • Environment:

      Linux Mint 10, Sun JDK 1.6.0_22, Jetty 7.2.2, Mojarra 2.0.4b09, Chrome dev channel

    • Steps to Reproduce:
      Hide

      1. Create a page with a rich:extendedDataTable that uses the rowClass attribute to style rows, with selectionMode='single', and a h:commandButton. Also create a suitable backing bean to provide some data to the table and to store the table selection state.
      2. Open the page, select a row in the table, and click the commandButton to cause a postback and a re-render of the page.
      3. The resulting HTML should contain a duplicate class definition for the selected row.

      Show
      1. Create a page with a rich:extendedDataTable that uses the rowClass attribute to style rows, with selectionMode='single', and a h:commandButton. Also create a suitable backing bean to provide some data to the table and to store the table selection state. 2. Open the page, select a row in the table, and click the commandButton to cause a postback and a re-render of the page. 3. The resulting HTML should contain a duplicate class definition for the selected row.

      Description

      When rendering a rich:extendedDataTable that uses the rowClass attribute, and has a row selected, the following HTML is generated:

      <tr class="deleted" class="rf-edt-r-sel rf-edt-r-act" ...>

      The HTML attribute 'class' is generated twice, once for the rowClass definition, once for RichFaces' own CSS classes. This makes a browser that parses the markup with a XML parser blow up.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                abelevich Anton Belevich
                Reporter:
                tinfailhat David Vallner
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: