Feature Requests item #982177, was opened at 2004-06-29 13:10
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=982177&group_id=73068

Category: main taglib
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: David E (halcy)
Assigned to: Nobody/Anonymous (nobody)
Summary: User Specified Comparator Per Column

Initial Comment:
Attached is a patch to add the ability to specify a 
custom Comparator class to be used on a column.

An example:
<display:column property="userName" title="UserName" 
sortable="true" class="displayTag" 
comparator="com.something.StringCaseInsensitiveCompar
ator">                
    <bean:write name="user" property="userName"/>
</display:column>

Nice to not have to create some kind of wrapper around 
your object implementing CompareTo eh?

Note this example also uses my other patch for sorting 
rows then rendering the JSP output of that row.  So for 
this example the usernames will be sorted case 
insensitively then displayed as they were entered.

Enjoy.

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

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=536616&aid=982177&group_id=73068


-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 - 
digital self defense, top technical experts, no vendor pitches, 
unmatched networking opportunities. Visit www.blackhat.com
_______________________________________________
displaytag-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/displaytag-devel

Reply via email to