One of my sortable columns in a display table has a value that sometime
needs to be formatted in a different color:

<display:column title="ID" sortable="true" headerClass="sortable">
    <c:choose>
        <c:when test='${row.isOrphan}'>
            <span class="red"><c:out value="${row.id}"/></span>
        </c:when>
        <c:otherwise>
            <span class="black"><c:out value="${row.id}"/></span>
        </c:otherwise>
    </c:choose>
</display:column>

The sorting works, except the entries in red always show up as the last in
the sort.  For example, if the ids are 1, 2, 3, 4, 5, and entries 2 and 3
are red, the whole table is sorted as 1, 4, 5, 2, 3.

I've swapped the class colors to see if it was sorting by the text of the
<span> tag, but that didn't make a difference... in fact it seems to sort
all the "otherwise" values first, then the rest.

Thoughts?  How can I accomplish this?

Raul


-------------------------------------------------------
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

Reply via email to