Have you tried the sortProperty attribute for the column? The
description for this is:

Name of the property in the bean specified in the parent table tag (via
the "name" attribute) which will be used to sort values in the column.
This can be used when the column body is filled or a decorator is used
and column should sort on undecorated values.

What would have gone in the property attribute goes here instead.

RB
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Jon
Horsman
Sent: Wednesday, October 25, 2006 9:54 AM
To: displaytag-user@lists.sourceforge.net
Subject: [displaytag-user] Sorting Issues

I have a strange sorting issue that i was wondering if anyone has an
idea what would case the problem.

I have the following code for one of my columns

<display:column title="Description" headerClass="Table_Col_Header"
sortable="true" style="{text-align: left}">
<% String description = (((com.mitel.me.model.Domain)
pageContext.getAttribute("tableId")).getDescription()); %>
<%=description%>
</display:column>

I have omitted other code that does some calculations on the
description etc, since it doesn't seem to be what is causing me the
problem (ie, due to this other code that is required I can't simply
use property="description in the column tag)

If i have a list with the following descriptions
aaaa
bbbb
CCCC
dddd
eeee
FFFF

and i sort, i get the following.
CCCC
FFFF
aaaa
bbbb
dddd
eeee

It seems to sort descriptions that start with a capital letter first
and then sort descriptions with lower case afterwards.  Does anyone
have an idea why this would be?  This isn't the case if i simply use
property="description", which I can't use since i need some extra
logic to change the description in the jsp.

Any ideas?

Thanks.

Jon

------------------------------------------------------------------------
-
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
displaytag-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/displaytag-user




-------------------------------------------------------------------------
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
displaytag-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/displaytag-user

Reply via email to