Bugs item #1031016, was opened at 2004-09-20 07:39
Message generated for change (Comment added) made by fgiust
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: Closed
Resolution: None
Priority: 5
Submitted By: Steven Zhao (stevenzhao)
>Assigned to: fabrizio giustina (fgiust)
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.

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

>Comment By: fabrizio giustina (fgiust)
Date: 2004-09-21 20:47

Message:
Logged In: YES 
user_id=798060

this was already fixed in cvs from July, 21:
http://cvs.sourceforge.net/viewcvs.py/displaytag/displaytag2/src/java/org/displaytag/model/RowIterator.java?r1=1.8&r2=1.9



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

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