Thanks a lot Rick. that worked by giving the sortProperty.

>From: "Rick Herrick" <[EMAIL PROTECTED]>
>Reply-To: displaytag-user@lists.sourceforge.net
>To: displaytag-user@lists.sourceforge.net
>Subject: Re: [displaytag-user] sort not working for Date
>Date: Thu, 26 Oct 2006 10:10:56 -0700 (PDT)
>
>fea jabi wrote:
> > Rick,
> >      Thanks for your response.  I tried the same but it's not sorting
> > right.
> > Please see below and suggest what's the mistake?
>
>I think it's this:
>
><display:column titleKey="lbl.crdate" sortable="true">
>
>It's sortable, sure, but sortable on what?  displaytag doesn't really know
>what you're displaying in the actual cells (and remember that what you're
>displaying is text, meaning that even if it did know what you were
>displaying in each cell, it would sort it alphabetically).  I'm surprised
>actually that there's not some error thrown by adding sortable without a
>property or sortProperty attr.  So you just need to add that:
>
><display:column titleKey="lbl.crdate" sortable="true"
>sortProperty="createDate">
>
>That is, createDate or whatever your date property is.  That will tell the
>column on which actual property to sort.
>
>--
>Rick Herrick
>[EMAIL PROTECTED]
>
>Proud member of the reality-based community
>
>Never try to discourage thinking for you are sure to succeed.--Bertrand
>Russell
>
>-------------------------------------------------------------------------
>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

_________________________________________________________________
Stay in touch with old friends and meet new ones with Windows Live Spaces 
http://clk.atdmt.com/MSN/go/msnnkwsp0070000001msn/direct/01/?href=http://spaces.live.com/spacesapi.aspx?wx_action=create&wx_url=/friends.aspx&mkt=en-us


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