Feature Requests item #823393, was opened at 2003-10-14 12:18
Message generated for change (Tracker Item Submitted) made by Item Submitter
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: 5
Submitted By: Paul McCulloch (paulmcculloch)
Assigned to: Nobody/Anonymous (nobody)
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))




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

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: SF.net Giveback Program.
SourceForge.net hosts over 70,000 Open Source Projects.
See the people who have HELPED US provide better services:
Click here: http://sourceforge.net/supporters.php
_______________________________________________
displaytag-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/displaytag-devel

Reply via email to