On Thursday 27 April 2006 01:02 am, SourceForge.net wrote:
> Read and respond to this message at:
> https://sourceforge.net/forum/message.php?msg_id=3703976
> By: moganti
>
> hello,
> can any help me sorting on mutliple columns not using external sorting
> techinque
> using comparator
> i have to sort
> example: 4 colums daterecevied (date format),status(string),
> source(string),taskid(string)
> daterecevied is same means
> 1 have sort first stautus if(same status)
> 2 sort source if(same source)
> 3 sort on taskid
> if any could help me how to sort using comparator
> in default comparator uses string as object compare it
>
> i will be great full if any could help in issue to reslove plz
> thanks
> moganti
Moganti,
If I understand your question correctly...
The column tags have the ability to call different methods
for data and for sorting. For columns, like dates, which have
different values for sorting and displaying you'll need to
create separate sort methods which provide Strings values
you'd like that column sorted on.
For example:
bean:
getDaterecevied()
getDatereceviedSortValue()
jsp:
<column sortable="true" property="datereceived"
sortProperty="datereceivedSortValue" >
-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
displaytag-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/displaytag-user