You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Martin Grigorov (JIRA)" <ji...@apache.org> on 2011/04/04 14:21:05 UTC

[jira] [Resolved] (WICKET-3580) Remove ISortStateLocator.setSortState() method.

     [ https://issues.apache.org/jira/browse/WICKET-3580?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Martin Grigorov resolved WICKET-3580.
-------------------------------------

       Resolution: Fixed
    Fix Version/s: 1.5-RC4
                   1.4.18
         Assignee: Martin Grigorov

Removed in trunk with r1088585 and marked as deprecated in 1.4.x with r1088587.

> Remove ISortStateLocator.setSortState() method.
> -----------------------------------------------
>
>                 Key: WICKET-3580
>                 URL: https://issues.apache.org/jira/browse/WICKET-3580
>             Project: Wicket
>          Issue Type: Improvement
>          Components: wicket-extensions
>    Affects Versions: 1.5-RC2
>         Environment: all
>            Reporter: Jesse Long
>            Assignee: Martin Grigorov
>            Priority: Trivial
>             Fix For: 1.4.18, 1.5-RC4
>
>         Attachments: fix-WICKET-3580.patch
>
>
> Can we please drop the setSortState() method of org.apache.wicket.extensions.markup.html.repeater.data.sort.ISortStateLocator ? It's not used by anything at all, and just messes my data provider up.
> My ISortableDataProvider expects my custom ISortState, which is fine, except that I must allow someone to setSortState() passing me a generic ISortState, which will not work with my Data Provider. I think this setSortState() is unnecessary and should be dropped.
> <martin-g>	the idea is that you can change the sortState after construction
> yes, but ISortState has a setPropertySortOrder(), which allows it to be mutable, hence no need to provice a new ISortState
> My use case is this: I have a MultiColumnSortState, which maintains a List of SortParams, based on the sequence of setPropertySortOrder() calls. My ISortableDataProvider can only intelligently work with this one ISortState it is designed to work with.
> Setting another arbitrary ISortState will make no sense. In fact, look at the only ISortableDataProvider supplied with Wicket source: org.apache.wicket.extensions.markup.html.repeater.util.SortableDataProvider. It too can only accept the specific ISortState it expects. That ISortState is also mutable, so does not actually need setting at all.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira