The following comment has been added to this issue:
Author: Gr?gory Joseph
Created: Thu, 25 Nov 2004 1:51 PM
Body:
I think I get it now:
If the property is the same as the sortProperty, then displaytag still sorts
with the decorated value. Simply because it doesn't make the difference between
the two.
So if you use the same name for your decorated values (which should be the case
for most people, right?) then this issue is not resolve, IMHO.
And, if I may add my opinion, I think the *default* behaviour should be to sort
on non-decorated value.
(Think about timestamps: I'm not decorated them, I have a java.util.Date
property in my objects... They're being printed out with the default toString()
method of Date which return stuff like "Mon Nov 22 20:54:07", "Tue Nov 23
10:48:20 CET 2004" .. And displaytag sorts my dates on that string instead of
the actual date object, which make the sorting totally wrong... That is, even
without using a decorator...)
---------------------------------------------------------------------
View this comment:
http://jira.codehaus.org/browse/DISPL-58?page=comments#action_27158
---------------------------------------------------------------------
View the issue:
http://jira.codehaus.org/browse/DISPL-58
Here is an overview of the issue:
---------------------------------------------------------------------
Key: DISPL-58
Summary: Additional attribute for specifying property used for sorting.
Type: Improvement
Status: Closed
Priority: Major
Resolution: FIXED
Original Estimate: 5 minutes
Time Spent: Unknown
Remaining: 5 minutes
Project: DisplayTag
Components:
Paging/Sorting
Fix Fors:
1.0 RC2
Versions:
1.0 RC2
Assignee: fabrizio giustina
Reporter: Jason Lee
Created: Thu, 14 Oct 2004 7:11 PM
Updated: Thu, 25 Nov 2004 1:51 PM
Description:
As per my email to the list:
------------------------------------------------------
This is sorta a follow-up to my last post. I had a
issue where I was filling in a javascript link with my
column property value and when sorting on that column
header, the sort would not work correctly as it was
always using the tag value (incl the javascript href)
that i specified.
So in other words, I wanted to sort by my original
bean value and not my later decorated value.
After digging around in the source, I added a extra
property to the column tag that allows me to set the
original bean property name in addition to the table
decorator property. I Also made the additional changes
to the underlying dependency classes and now my sort
and decorator value can co-exist and work properly.
------------------------------------------------------
I have the fixes but I'm not sure how to upload them nor create patches.
---------------------------------------------------------------------
JIRA INFORMATION:
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
If you want more information on JIRA, or have a bug to report see:
http://www.atlassian.com/software/jira
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://productguide.itmanagersjournal.com/
_______________________________________________
displaytag-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/displaytag-devel