[ http://jira.codehaus.org/browse/DISPL-209?page=comments#action_42257 ]
Tom Tibbetts commented on DISPL-209:
------------------------------------
in RowIterator.java replace the code for the next() method with the following
code:
public Row next()
{
int currentRowNumber = this.rowNumber++;
if (log.isDebugEnabled())
{
log.debug("[" + this.id + "] rowIterator.next() row number=" +
currentRowNumber);
}
Object object = this.iterator.next();
Row row = (Row) object;
int listIndex = row.getRowNumber() - 1;
row.setRowNumber(currentRowNumber);
if (this.decorator != null)
{
this.decorator.initRow(row.getObject(), currentRowNumber,
listIndex);
}
return row;
}
> getListIndex() does not return the real list index
> --------------------------------------------------
>
> Key: DISPL-209
> URL: http://jira.codehaus.org/browse/DISPL-209
> Project: DisplayTag
> Type: Bug
> Components: Decorators, Paging/Sorting
> Versions: 1.0
> Reporter: Patrick Ehrensperger
>
>
> 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
-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
displaytag-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/displaytag-devel