java - How to get a value from a list in apache velocity file? -


how value uirowformatlist in vm file?
using below code this.

#set($i = $velocitycount-1)     #set($rowformatcomponents = $uirowformatlist.get($i)) 

i getting exception when run this:

"fo:table-body" missing child elements. required content model: marker* (table-row+|table-cell+) 

when hardcoding value of 0 in method this, displaying proper values:

#set($rowformatcomponents = $uirowformatlist.get(0) 


Comments