Sushrut Bidwai
2013-03-15 18:57:02 UTC
Hi,
I have nested map.
Map<String, Map<String, Long>> domains;
When I access it in following manner I get InvalidReferenceException
<#list somelist as item>
<#list domains[item]?keys as key>
${key}
</#list>
</#list>
Expression domains[item] is undefined on line...
I tried using BeansWrapper as well as DefaultObjectWrapper. Also I have
checked contents on the map and none of the values are null.
Link<http://stackoverflow.com/questions/15440026/invalid-reference-exception-while-accessing-nested-map-in-freemarker>to
the same question on SO.
--
Best Regards,
Sushrut
http://simplycious.com
I have nested map.
Map<String, Map<String, Long>> domains;
When I access it in following manner I get InvalidReferenceException
<#list somelist as item>
<#list domains[item]?keys as key>
${key}
</#list>
</#list>
Expression domains[item] is undefined on line...
I tried using BeansWrapper as well as DefaultObjectWrapper. Also I have
checked contents on the map and none of the values are null.
Link<http://stackoverflow.com/questions/15440026/invalid-reference-exception-while-accessing-nested-map-in-freemarker>to
the same question on SO.
--
Best Regards,
Sushrut
http://simplycious.com