[ http://jira.codehaus.org/browse/DISPL-209?page=all ]
     
fabrizio giustina closed DISPL-209:
-----------------------------------

     Resolution: Won't Fix
    Fix Version: 1.1

I reviewed the patch supplied, but the value returned by getListIndex() will 
not be the correct one.
Actually, there is no way to get the correct index in the original, unsorter 
list: doing this will require iterating throug all the list for each object to 
get its original position (and still it will not work for duplicate objects).
getListIndex() returns the list in the FULL list, but after sorting (so it's 
the same as the view index + page offset). I added a note about this to the 
TableDecorator javadocs.
Closing since it can't be fixed.

> getListIndex() does not return the real list index
> --------------------------------------------------
>
>          Key: DISPL-209
>          URL: http://jira.codehaus.org/browse/DISPL-209
>      Project: DisplayTag
>         Type: Bug

>   Components: Paging/Sorting, Decorators
>     Versions: 1.0
>     Reporter: Patrick Ehrensperger
>      Fix For: 1.1

>
>
> getListIndex() seems to return the same value as getViewIndex() after sorting 
> a list/table.
> According to my understanding of the api, getListIndex() should always return 
> the index of the object in the original unsorted list/table.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira



-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
displaytag-devel mailing list
displaytag-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/displaytag-devel

Reply via email to