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

Reply via email to