|
From: Keats K. <ke...@xa...> - 2005-11-18 15:24:31
|
I would be a nice enhancement to allow one to configure the map implementation, but I think it would be a mistake to rely on non-standard map behavior from the generic map syntax. However you can use the new #setprops directive to get what you want. see: http://www.webmacro.org/SetpropsDirective You could do something like: #setprops $map class="java.util.LinkedHashmap" { k1: v1 k2: v2 } Hope this helps. Keats Nikhil G. Daddikar wrote: > I like the new #set $map = { k1: v1, k2:v2 } syntax. The only problem > is that it does not use the "List Ordered" Map i.e. when I want to > say render a select list from it, it shows things not in the order in > which the map was defined. Is there a way where I can specify the > implementation class to use? I use JDK 1.5 and would like to specify > the LinkedHashMap. > > Any help and pointers would be appreciated. > |