you need another getter method in your collection object that
returns a value usable in sorting and specify this on the
sortProperty= attribute for that column.
(if I understand your question right)
On Wednesday 15 March 2006 10:40 am, Nathan Maves wrote:
> BUMP.
>
> Has anyone dealt with sorting decorated columns?
>
> Nathan
>
> On Mar 14, 2006, at 11:39 AM, Nathan Maves wrote:
>
> > First off I am using the 1.1 version.
> >
> >
> > I have a List of POJO's of which on of the columns is a
> > java.lang.Long representing a number of minutes.
> >
> > I have created a column decorator that displays the data as "3d 5h
> > 28m". All of this works perfect,
> >
> > I have defined the column as below.
> >
> > <display:column property="value" title="Time" sortable="true"
> > decorator="lighthouse.decorators.DateDecorator"/>
> >
> > The issue that I have is that when I specify that the table have a
> > defaultsort it is not sorting the column correctly. The page
> > displays the column as if it was sorted but in reality it is not.
> > If I click on the column title it will sort properly. Just not for
> > the initial display.
> >
> >
> > Here is the full code
> >
> > <display:table class="mars" name="cases" id="row"
> > requestURI="ViewCases.do" defaultsort="8" defaultorder="descending">
> > <display:column property="caseId" title="Case ID" />
> > <display:column property="customerName" title="Customer
> > Name" sortable="true"/>
> > <display:column property="status" title="Status"
> > sortable="true"/>
> > <display:column property="serviceLevel" title="Service
> > Level" sortable="true"/>
> > <display:column property="severity" title="Severity"
> > sortable="true"/>
> > <display:column title="Owner" sortable="true">
> > ${row.firstName} ${row.lastName}
> > </display:column>
> > <display:column property="groupName" title="Group"
> > sortable="true"/>
> > <display:column property="value" title="Time"
> > sortable="true" decorator="lighthouse.decorators.DateDecorator"/>
> > <display:column property="value" title="Time"/>
> > </display:table>
> >
> > Any help would be great and I love the product so far!
> >
> > Nathan
> >
> >
> >
> > -------------------------------------------------------
> > This SF.Net email is sponsored by xPML, a groundbreaking scripting
> > language
> > that extends applications into web and mobile media. Attend the
> > live webcast
> > and join the prime developer group breaking into this new coding
> > territory!
> > http://sel.as-us.falkag.net/sel?
> > cmd=lnk&kid=110944&bid=241720&dat=121642
> > _______________________________________________
> > displaytag-user mailing list
> > [email protected]
> > https://lists.sourceforge.net/lists/listinfo/displaytag-user
>
>
>
> -------------------------------------------------------
> This SF.Net email is sponsored by xPML, a groundbreaking scripting language
> that extends applications into web and mobile media. Attend the live webcast
> and join the prime developer group breaking into this new coding territory!
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
> _______________________________________________
> displaytag-user mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/displaytag-user
>
>
>
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
displaytag-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/displaytag-user