Feature Requests item #823393, was opened at 2003-10-14 14:18
Message generated for change (Comment added) made by pivot
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=536616&aid=823393&group_id=73068
Category: main taglib
Group: v 1.0-b1
Status: Open
Resolution: None
Priority: 7
Submitted By: Paul McCulloch (paulmcculloch)
Assigned to: andy pruitt (rapruitt)
Summary: Sort by property even when a column body is declared
Initial Comment:
It would be useful to allow the specification of a
property and a body to the column tag. The body is used
for display whilst the property is used for sorting.
For example, I prefer to use column body, rather than
decorators for formatting of dates:
<display:column title="Date" sort="true">
<fmt:formatDate value="${row.dateLogged}" type="date"
dateStyle="SHORT" timeStyle="SHORT"/>
</display:column>
This allows me to use nice existing tags for date
formatting. Unfortuantly the sorting is done of the
resulting formatted text - not date order.
By allowing both property & body to be passed this can
be achieved.
This can be achieved (at fiirst glance!) by changing
ColumnTag.java roundabout line 741
from:
if (mProperty == null)
to:
if (mProperty == null || (mProperty != null &&
getBodyContent() != null))
----------------------------------------------------------------------
Comment By: Torgeir Veimo (pivot)
Date: 2003-12-01 10:29
Message:
Logged In: YES
user_id=201434
what about a different attribute name for the sort property?
We patch displaytag locally allowing a sortProperty
attribute which is used for this purpose.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=536616&aid=823393&group_id=73068
-------------------------------------------------------
This SF.net email is sponsored by OSDN's Audience Survey.
Help shape OSDN's sites and tell us what you think. Take this
five minute survey and you could win a $250 Gift Certificate.
http://www.wrgsurveys.com/2003/osdntech03.php?site=8
_______________________________________________
displaytag-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/displaytag-devel