Details

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

      Tomcat 6.0.24, Mojarra 2.0.4, RichFaces M6/CR1

    • Steps to Reproduce:
      Hide

      _open capitals.xml from richfaces-showcase.
      _remove some capitals, so that the resulting amount of capitals is uneven. For exmaple just three capitals.
      _mvn clean package
      _run richfaches-showcase
      _open http://localhost:8080/richfaces-showcase/richfaces/component-sample.jsf?demo=&sample=tableSorting&skin=blueSky
      _click multiple times on one column header for alternating sorting of the column.

      The table just gets sorted the first time (descending), afterwards there is no action (when clicking on the same column header) until the user clicks on another column header.

      Show
      _open capitals.xml from richfaces-showcase. _remove some capitals, so that the resulting amount of capitals is uneven. For exmaple just three capitals. _mvn clean package _run richfaches-showcase _open http://localhost:8080/richfaces-showcase/richfaces/component-sample.jsf?demo=&sample=tableSorting&skin=blueSky _click multiple times on one column header for alternating sorting of the column. The table just gets sorted the first time (descending), afterwards there is no action (when clicking on the same column header) until the user clicks on another column header.

      Description

      The alternating (asc/desc) Table Sorting does not work correctly with an uneven amount ob rows.

      If the table consists of 15 rows, the specified action (for example action="#

      {capitalsSortingBean.sortByCapitals}

      ) is called 15 times (when clicked on the action link). (I assume it should be called only once...?)

      In the richfaces-showcase example with the US-states there are 50 states, the specified action gets called 50 times when clicked on the table header (the action link). Each time the action method is called, the internal sort order gets switched (between ascending and descending).

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                nbelaevski Nick Belaevski
                Reporter:
                chrisp_s2 Chris P
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: