this works great:
<#list myObjects as myObject>
<tr>
<td>${myObject.person.surname}</td>
<td>${myObject.myListOfCountries[0].city.name}</td>
</tr>
</#list>
However, if I try instead to create a nested list that does not work:
<#list myObjects as myObject>
<tr>
<td>${myObject.person.surname}</td>
<#list myObject.myListOfCountries as item>
<td>${item.city.name</td>
</#list>
</tr>
</#list>
The error received is shown below:
freemarker.core.ParseException: Encountered "/"
Any ideas that cause the error are nested lists allowed in freemarker?
source
share