Announcement Announcement Module
No announcement yet.
Using Long in velocity templates Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • Using Long in velocity templates

    I know this is more of a velocity question, but has anyone figured out a good way to deal with Long objects in velocity templates? If you have the following velocity code:

    ${myNumber > 0}
    This works if myNumber is an Integer, but I haven't found any way to use greater than or less than with a Long. I am using a Long to represent the PK of objects that model database rows. This seems to be common practice, so I figure there has to be some way to use greater and less than with velocity templates.

  • #2
    Looks like a bug. Can't think of any good reason it wouldn't work.