Feature Requests item #823393, was opened at 2003-10-14 07:18
Message generated for change (Settings changed) made by rapruitt
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))




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

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.
Does SourceForge.net help you be more productive?  Does it
help you create better code?  SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
_______________________________________________
displaytag-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/displaytag-devel

Reply via email to