I have 3 String lists(lets say ListA, ListB and ListC) in my java class which maps to velocity template. I need to display the values of the list in a table.
As velocity allows only foreach loop i can get values of only one list. is there a way to get values from all three lists?
If not in foreach loop, how to access the list values through its index?
Any inputs will be much appreciated.
with a little more investigation i found the answer.
from java class, lets say we have following code with populateVelocityParams method
params.put("listA",ListA); //Map the below java utils List class params.put("list",List.class);
then in velocity template,
$listA.get(index); //"index" here is the list integer index position in ListA
Cheers to Kemal Bajramovic, our first ever AUG Leader to be Showcased. AUG Leaders are passionate experts who find time in their own busy lives to host Atlassian themed events to share ...
Connect with like-minded Atlassian users at free events near you!Find a group
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no AUG chapters near you at the moment.Start an AUG
You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs
We're bringing product updates and pro tips on teamwork to ten cities around the world.Save your spot