Carsten Schinzer created OFBIZ-13164:
----------------------------------------

             Summary: HashMaps are not properly rendered in FTL with current 
FTL integration
                 Key: OFBIZ-13164
                 URL: https://issues.apache.org/jira/browse/OFBIZ-13164
             Project: OFBiz
          Issue Type: Bug
          Components: base
            Reporter: Carsten Schinzer


When stating hashmap iterations in FTL as

 

<#list someHashMap as key, value>

keys are listed, but contain methods.

 

According to 
[https://stackoverflow.com/questions/1497777/freemarker-iterating-over-hashmap-keys]
 this is caused by the FTP integration using BeansWrapper and not 
DefaultObjectWrapper in the FTP integration e.g. in class 
org.apache.ofbiz.base.util.template.FreeMarkerWorker

First attempts to apply a simple fix are not successful hence logging the issue 
in order to:
 * get help from others
 * take a deeper look later

Right now (as urgently required) I shall apply a fix on the FTL side and use 
the "very old way" mentioned on the above entry at 

[https://stackoverflow.com/a/38272341]

 



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to