*
The moose likes Other Open Source Projects and the fly likes Help on velocity template? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Products » Other Open Source Projects
Bookmark "Help on velocity template?" Watch "Help on velocity template?" New topic
Author

Help on velocity template?

manish ghildiyal
Ranch Hand

Joined: Jan 12, 2013
Posts: 136
Hi,

I have written a velovity template to display data in my java objects.
I pass collection of objects to template which then iterate the collection and display the data in rows and columns form.

If one of the field in java object is a collection of values, then template is placing all the collection values in same box, with values separated by ',' and surrounded by '[]'.
What I want is that every single value is displayed in next row(other columns would then be empty for those rows). But not able to figure out how to do that.
Any idea how to achieve this?

With regards
Manish
Ivan Jozsef Balazs
Rancher

Joined: May 22, 2012
Posts: 867
    
    5
You can iterate through a collection like this
manish ghildiyal
Ranch Hand

Joined: Jan 12, 2013
Posts: 136
Thanks a lot Ivan.
 
Don't get me started about those stupid light bulbs.
 
subject: Help on velocity template?
 
Similar Threads
Problem with Dynamic DataTable.
Updating data in the JTable cells
ideas wanted on making this custom JTable cell renderer more efficient
Generate JTable from a SQL Query containing UNION clause
Row & Column totals in jTable