Uploaded image for project: 'MyFaces Tomahawk'
  1. MyFaces Tomahawk
  2. TOMAHAWK-17

<t:commandSortHeader> processes action / actionListener before updating values of sortColumn and sortAscending

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.1.5
    • Sort Header
    • None

    Description

      At the moment <t:CommandSortHeader> processes an action / actionListener before updating the values of sortColumn and sortAscending. The reason is that in the broadcast() method of HtmlCommandSortHeader.java, the method super.broadcast(event) is executed before the values are updated.

      The consequence of this bug is that in the methods called by the action / actionListener, the sortColumn and sortAscending properties of the datatable still have the old value. Which in turn means that any sorting performed in the action / actionListener methods lead to incorrect results.

      Suggested solution: call super.broadcast(event) AFTER the values of the datatable have been updated.

      Attachments

        Activity

          People

            mbroekelmann Mathias Broekelmann
            fbascheper Erik-Berndt Scheper
            Votes:
            3 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: