Dobrojelatel / vosao

Automatically exported from code.google.com/p/vosao
GNU Lesser General Public License v2.1
0 stars 0 forks source link

expose the system date for velocity #521

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I wish to use the built in Vosao comment feature to display comments in the 
order they were recorded ie oldest first.

The CommentVO.java class converts the published date to a String, so it can't 
be used to sort on in velocity. The original date is in CommentEntity.java as a 
java.util.Date

I tried to order the comments on the ID, which is also exposed to velocity, but 
this does not seem consistent. 

Would it be possible to either:
 1) expose a method to get comments ordered by published date (asc or desc)?
 2) expose the java date object to Velocity, so that the velocity sort tools can be used?

Many thanks

Original issue reported on code.google.com by iain.ked...@gmail.com on 11 Oct 2011 at 1:59

GoogleCodeExporter commented 9 years ago
This issue was closed by revision r1137.

Original comment by kinyelo@gmail.com on 21 Jan 2012 at 12:59

GoogleCodeExporter commented 9 years ago
Added getDate() method. Fixed in 0.9.13.

Original comment by kinyelo@gmail.com on 21 Jan 2012 at 12:59