ICEfaces
  1. ICEfaces
  2. ICE-8177

ace:dataTable - resetSorting() ignores the sortAscending attribute

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 3.1.0.BETA1
    • Fix Version/s: 3.1.0.BETA2, 3.1
    • Component/s: ACE-Components
    • Labels:
      None
    • Environment:
      ICEfaces 3.1.0 BETA1
    • Assignee Priority:
      P1
    • Affects:
      Compatibility/Configuration

      Description

      An ace:dataTable uses grouping for a single column. The sortAscending attribute for this column is set to true. When a new set of data is retrieved the resetSorting() method is called for the dataTable. When this is called the sortAscending for the groupBy column is set to false or is ignored when the data is displayed.

      1. Case11295Example.zip
        19 kB
        Arran Mccullough
      2. Case11295ExampleWAR.zip
        9.73 MB
        Arran Mccullough

        Activity

        Hide
        Arran Mccullough added a comment -

        Test Case that shows issue.

        Steps to reproduce:

        • Load welcomeICEfaces.jsf page.
        • Click on Load List #1 button. Table is shown with the first groupBy column sorted ascending.
        • Click on Load List #2 button. New set of data is shown but the groupBy column no longer is sorted ascending.
        Show
        Arran Mccullough added a comment - Test Case that shows issue. Steps to reproduce: Load welcomeICEfaces.jsf page. Click on Load List #1 button. Table is shown with the first groupBy column sorted ascending. Click on Load List #2 button. New set of data is shown but the groupBy column no longer is sorted ascending.
        Hide
        Nils Lundquist added a comment -

        Revision #29255
        Committed by nils.lundquist
        A minute ago
        ICE-8177 - table.resetSorting() now only sets sortAscending to false for columns where groupBy is null.

        Show
        Nils Lundquist added a comment - Revision #29255 Committed by nils.lundquist A minute ago ICE-8177 - table.resetSorting() now only sets sortAscending to false for columns where groupBy is null.
        Hide
        Ken Fyten added a comment -

        ICE-8177 - SortAscending now Boolean to allow for setSortAscending(null) to revert to default.

        Show
        Ken Fyten added a comment - ICE-8177 - SortAscending now Boolean to allow for setSortAscending(null) to revert to default.

          People

          • Assignee:
            Nils Lundquist
            Reporter:
            Arran Mccullough
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: