hash & sequence
dirk ooms <[email protected]>
| Newsgroups | gmane.comp.web.freemarker.user |
|---|---|
| Organization | OneSparrow |
| Message-ID | <1234470628.8539.18.camel@venus> |
Hello, I have data that is stored in a LinkedHashMap, so it has both a hash and a sequence nature. I would like to address this data in a Freemarker template in both its natures. In an attempt to achieve this, I created my own class that extends LinkedHashMap and that provides the sequence interface methods (get(int) and size()). But when I try to use it in the <#list> construct Freemarker says: Expected collection or sequence. a.b.c evaluated instead to freemarker.template.SimpleHash So it does not recognize it as a sequence. Is there a way I can use my LinkedHashMap in a <#list>? Thanks, dirk ------------------------------------------------------------------------------