Title: Message
Hi Tommy,
 
Please refer to the usage of  ColumnDecorator to address your requirement.
 

Regards
Kiran Kumar
________________________________________________________________________
Lead Life by Choice Not By Chance

-----Original Message-----
From: Tommy Holm [mailto:[EMAIL PROTECTED]
Sent: Thursday, October 28, 2004 1:12 AM
To: [EMAIL PROTECTED]
Subject: [displaytag-user] sorting

Hi
I just started using the displaytag for the first time. I have a problem with the sorting. I have a business object list as my datasource and one of the properties (getPrice()) of the business object returns a double. A value could be 19.75. I have used the sortable=true for this column but when I click the sort link it seems as if the displaytag comparess the column values "as Strings" and that doesn't give the correct results. Is it not possible to sort on other values than strings ? I was hoping that maybe internally it would do something like
new Long(row1ColumnObject.getPrice()).compareTo(new Long(row2ColumnObject.getPrice())) etc.
Thank you for any help.
Cheers
Tommy



This message and any attachments are intended only for the use of the addressee and may contain information that is privileged and confidential. If the reader of the message is not the intended recipient or an authorized representative of the intended recipient, you are hereby notified that any dissemination of this communication is strictly prohibited. If you have received this communication in error, please notify us immediately by e-mail and delete the message and any attachments from your system.



This message is confidential and may also be legally privileged. If you are not the intended recipient, please notify [EMAIL PROTECTED] immediately. You should not copy it or use it for any purpose, nor disclose its contents to any other person. The views and opinions expressed in this e-mail message are the author's own and may not reflect the views and opinions of ADP.

Reply via email to