Facing Issues with velocity sortTool to sort Two java.util.Date Type

2009-04-20 Thread Ranjeet
Hi All, I am using velocity 1.5 sortTool to sort the properties of list. I am sorting two date, createdAt and updatedAt both property of dto are java.util.Date type. I am trying to sort on updatedAt first and if updatedAt is null then on createdAt. Its working fine if there is some value in upd

Re: Facing Issues with velocity sortTool to sort Two java.util.Date Type

2009-04-22 Thread Nathan Bubna
Could you be more specific about what you mean by "not working"? What happens? The code sample looks like you are already implementing the search pattern you want. Why not just try: $sorter.sort(${campaign.notes}) On Mon, Apr 20, 2009 at 3:42 AM, Ranjeet wrote: > Hi All, > > I am using veloci

Re: Facing Issues with velocity sortTool to sort Two java.util.Date Type

2009-04-23 Thread Ranjeet
sorting? Thanks & Regards, Ranjeet - Original Message - From: "Nathan Bubna" To: "Velocity Users List" Sent: Wednesday, April 22, 2009 11:56 PM Subject: Re: Facing Issues with velocity sortTool to sort Two java.util.Date Type Could you be more specific abo

Re: Facing Issues with velocity sortTool to sort Two java.util.Date Type

2009-04-23 Thread Nathan Bubna
iginal Message - From: "Nathan Bubna" > To: "Velocity Users List" > Sent: Wednesday, April 22, 2009 11:56 PM > Subject: Re: Facing Issues with velocity sortTool to sort Two java.util.Date > Type > > > Could you be more specific about what you mean