When I browse the list in freemarker as below, it works fine.
<#list cModel.products as product>
But when I try to assign the size of the list to a variable, for example,
<#assign totalProducts = cModel.products.getList()?size>
I get an exception from a free marker as shown below
left operand: a hash is expected, but it is evaluated by the sequence
Any suggestions?
source share