Wicket
  1. Wicket
  2. WICKET-4403

Go to page 1 when datatable is filtered

    Details

    • Type: Improvement Improvement
    • Status: Resolved
    • Priority: Trivial Trivial
    • Resolution: Won't Fix
    • Affects Version/s: 1.5.3
    • Fix Version/s: None
    • Component/s: wicket
    • Labels:
      None

      Description

      Go to the first page of a datatable when you filtered the data with a IFilterStateLocator. Currently this is already implemented when you sort a column.
      When you're not on the first page and you filter the data, you go to the last page available for the new data. This is confusing and ugly.

        Activity

        Rotschi Fanky created issue -
        Martin Grigorov made changes -
        Field Original Value New Value
        Comment [ I cannot run your quickstart.
        There is a JavaScript error:
        Uncaught Error: HIERARCHY_REQUEST_ERR: DOM Exception 3
        g._addToParentcontainer_core-min-ver-1326296648000.js:9
        rcontainer_core-min-ver-1326296648000.js:9
        g.rendercontainer_core-min-ver-1326296648000.js:9
        (anonymous function):8080/?0:13
        Wicket.Event.fireDomReadyHandlerswicket-event-ver-1328860748000.js:170
        (anonymous function)wicket-event-ver-1328860748000.js:191
        domCheck

        Clicking the link works OK but the HTML for the menu is just:
        <div wicket:id="menu" id="menu1" class="yui-module yui-overlay yuimenubar"></div>
        i.e. there is nothing to click. ]
        Hide
        Martin Grigorov added a comment -

        Can you provide a patch ?

        Show
        Martin Grigorov added a comment - Can you provide a patch ?
        Hide
        Martin Grigorov added a comment -

        FilterForm just manipulates the filter state but it doesn't know anything about what other components are used in the page so it cannot manipulate them.
        Sorting always works with DataTable, that's why this is possible.

        Show
        Martin Grigorov added a comment - FilterForm just manipulates the filter state but it doesn't know anything about what other components are used in the page so it cannot manipulate them. Sorting always works with DataTable, that's why this is possible.
        Martin Grigorov made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Won't Fix [ 2 ]

          People

          • Assignee:
            Unassigned
            Reporter:
            Rotschi Fanky
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development