Bugs item #814058, was opened at 2003-09-28 18:37
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=814058&group_id=73068
Category: main tag library
Group: v 1.0-b1
Status: Open
Resolution: None
Priority: 5
Submitted By: Jim Moriarty (jimmy_moriarty)
Assigned to: Nobody/Anonymous (nobody)
Summary: Sorting with table decorators fails (fix included)
Initial Comment:
When a table decorator has been declared, sorting fails
for columns that are decorated.
Problem occurs as the row objects are not set before
they are compared in model/RowSorter.java.
Need to change (circa line 110):
if (mTableDecorator != null &&
mTableDecorator.hasGetterFor(mProperty))
{
lResult1 =
LookupUtil.getBeanProperty(mTableDecorator, mProperty);
lResult2 =
LookupUtil.getBeanProperty(mTableDecorator, mProperty);
}
to
if (mTableDecorator != null &&
mTableDecorator.hasGetterFor(mProperty))
{
// jmm 26 sept 03 - need to set the row before
sending to the decorator
((TableDecorator)mTableDecorator).initRow ( lObj1,
0, 0 );
lResult1 =
LookupUtil.getBeanProperty(mTableDecorator, mProperty);
// jmm 26 sept 03 - need to set the row before
sending to the decorator
((TableDecorator)mTableDecorator).initRow ( lObj2,
0, 0 );
lResult2 =
LookupUtil.getBeanProperty(mTableDecorator, mProperty);
}
or something similar
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=536613&aid=814058&group_id=73068
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
displaytag-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/displaytag-devel