[SPAM] hash of hash
fuss <[email protected]>
| Newsgroups | gmane.comp.web.freemarker.user |
|---|---|
| Message-ID | <[email protected]> |
Hello everyone,
I have some simple construction i Java:
class Products{
Map<String, Map<Integer, Double>> object;
}
and to get Double value in Java I can use:
for (Food food : products.getFood()) {
for (Integer integer : products.getLenghts()) {
System.out.println(products.getObject().get(food.getName()).get(integer));
}
}
in freemarker when I am trying to use this construction
[#list products.food as food ]
[#list products.lenghts as lenghts]
${products.object[food.name][lenghts]}
[/#list]
[/#list]
I get unexpected Exception:
Expected number, sequence, or string. products.prices[pizza.name] evaluated
instead to freemarker.template.SimpleHash on line 49, column 35 in
products.ftl.
The problematic instruction:
----------
==> ${products.object[food.name][lenghts]} [on line 49, column 33 in
products.ftl]
----------
IS there any way to get hash from hash directly ?
Thanks for help!
--
View this message in context: http://n4.nabble.com/hash-of-hash-tp1475885p1475885.html
Sent from the freemarker-user mailing list archive at Nabble.com.
------------------------------------------------------------------------------
SOLARIS 10 is the OS for Data Centers - provides features such as DTrace,
Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW
http://p.sf.net/sfu/solaris-dev2dev