[stringtemplate-interest] Map as template attribute
Zdenek Vrablik
ZVrablik at espatial.com
Fri Sep 28 08:14:01 PDT 2007
Hi everybody,
I am using Template to generate rss feeds.
I am inserting data as Map
Map attributeMap = this.convertAttributes(attributes);
template.setAttribute( "attributesList", attributeMap);
My template contains this iteration:
$ features, attributesList, points:
{ feature, attributes, point |
<entry>
<id>i/$feature.layer$/$feature.sdoGid$</id>
<title>$attributes.("TITLE")$</title>
<link
href="http://localhost:8080/DataAccessor/GetImage?id=$attributes.("IMAGE_URL
")$"/>
<updated>$attributes.("CREATE_DATE")$</updated>
<summary>$attributes.("TEXT")$</summary>
</entry>
}$
Everything works fine if there is more then one entry to render.
For one entry it doesn't create list of map objects, but it uses map and
iterate over all items in the map.
Is it bug?
I think it should behave same way for one map or more maps in list.
Regards,
Zdenek Vrablik
More information about the stringtemplate-interest
mailing list