Daniel Dekany
2013-06-17 11:22:19 UTC
This is freemarker-user mater, not freemarker-devel, so I have moved
this over there.
Anyway... seems trRS is not a List in the data-model, but a Map. Also
you can't list a Map, only its keys or values (like
<#list myMap?keys as key>). However, there's a limitation that it will
work like that if the keys are strings, not integers. I'm not sure if
you really need a LinkedHashMap with integer keys, or a just a List.
--
Thanks,
Daniel Dekany
this over there.
Anyway... seems trRS is not a List in the data-model, but a Map. Also
you can't list a Map, only its keys or values (like
<#list myMap?keys as key>). However, there's a limitation that it will
work like that if the keys are strings, not integers. I'm not sure if
you really need a LinkedHashMap with integer keys, or a just a List.
--
Thanks,
Daniel Dekany
Hi,
List
-LinkedHashMap (in position 0 of List)
-LinkedHashMap
How may0 access this structure by Freemaker?
I tryed with this template, but nothing.
<#list trRS[0] as keys>
<#list keys as keys2> ${keys[keys2]} -->retrieve the value of child
LinkedHashMap
</#list>--> for ciclyng keys of child LinkedHashMap!!!
</#list>--> for ciclyng keys of my first LinkedHashMap!!!
trRS is my List.
Expected collection or sequence. trRS[0] evaluated instead to
freemarker.template.SimpleHash on line 2, column 24 in free-marker-template.
----------
==>> list trRS[0] as keys [on line 2, column 17 in free-marker-template]List
-LinkedHashMap (in position 0 of List)
-LinkedHashMap
How may0 access this structure by Freemaker?
I tryed with this template, but nothing.
<#list trRS[0] as keys>
<#list keys as keys2> ${keys[keys2]} -->retrieve the value of child
LinkedHashMap
</#list>--> for ciclyng keys of child LinkedHashMap!!!
</#list>--> for ciclyng keys of my first LinkedHashMap!!!
trRS is my List.
Expected collection or sequence. trRS[0] evaluated instead to
freemarker.template.SimpleHash on line 2, column 24 in free-marker-template.
----------
----------
----------
freemarker.template.TemplateException: Expected collection or sequence.
trRS[0] evaluated instead to freemarker.template.SimpleHash on line 2,
column 24 in free-marker-template.
Thanks for your help!!!I hope.
--
http://freemarker.624813.n4.nabble.com/access-data-LinkedHashMap-LinkedHashMap-tp4654600.html
Sent from the freemarker-devel mailing list archive at Nabble.com.
------------------------------------------------------------------------------
Build for Windows Store.
http://p.sf.net/sfu/windows-dev2dev
_______________________________________________
FreeMarker-devel mailing list
https://lists.sourceforge.net/lists/listinfo/freemarker-devel
----------
freemarker.template.TemplateException: Expected collection or sequence.
trRS[0] evaluated instead to freemarker.template.SimpleHash on line 2,
column 24 in free-marker-template.
Thanks for your help!!!I hope.
--
http://freemarker.624813.n4.nabble.com/access-data-LinkedHashMap-LinkedHashMap-tp4654600.html
Sent from the freemarker-devel mailing list archive at Nabble.com.
------------------------------------------------------------------------------
Build for Windows Store.
http://p.sf.net/sfu/windows-dev2dev
_______________________________________________
FreeMarker-devel mailing list
https://lists.sourceforge.net/lists/listinfo/freemarker-devel
--
Thanks,
Daniel Dekany
Thanks,
Daniel Dekany