Hello,

I need to use an hashMap in my combobox's template.


Code:
Map map = new HashMap<String,String>();
map.put("test","it works!");

ComboBox<MyObject> combo = new ComboBox<MyObject>();
combo.setTemplate(getTemplate());
Code:
private native String getTemplate(final Map<String, String> map) /*-{
            return ['<tpl for="."> ' +                    
                    '<div>' + map.get("test") + '</div>' +
                    '</tpl>'].join("");
}-*/;
resulted stackTrace
com.google.gwt.core.client.JavaScriptException: (null): null

Anyone know how to deal with HashMap in native methods parameter?

Thanks,

Valery.