Bugs item #1031016, was opened at 2004-09-20 05:39
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=536613&aid=1031016&group_id=73068

Category: main tag library
Group: after 1.0
Status: Open
Resolution: None
Priority: 5
Submitted By: Steven Zhao (stevenzhao)
Assigned to: Nobody/Anonymous (nobody)
Summary: error ListIndex returned by RowIterator

Initial Comment:
at org.displaytag.model.RowIterator

there are 
// @todo the second currentRowNumber is wrong
this.decorator.initRow(row.getObject(), 
currentRowNumber, currentRowNumber);

so I add pagesize and pageNumber properties to 
RowIterator, then add 2 setXXX method in TableTag.

changes like this:
int realRowNumber = currentRowNumber + 
(this.pageNumber - 1) * this.pagesize;
          this.decorator.initRow(row.getObject(), 
currentRowNumber, realRowNumber);

then, I can get correct ListIndex in MyTableDecorator 
that extends TableDecorator.

hope to patch the bug.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=536613&aid=1031016&group_id=73068


-------------------------------------------------------
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
Project Admins to receive an Apple iPod Mini FREE for your judgement on
who ports your project to Linux PPC the best. Sponsored by IBM.
Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php
_______________________________________________
displaytag-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/displaytag-devel

Reply via email to