开发者

Tapestry5 display grid component using a hashmap

开发者 https://www.devze.com 2022-12-24 23:13 出处:网络
I am trying to attempt to display a hashmap using a grid component. If I use List list = CollectionF开发者_StackOverflow中文版actory.newList(MyHashMap);

I am trying to attempt to display a hashmap using a grid component. If I use

List list = CollectionF开发者_StackOverflow中文版actory.newList(MyHashMap);

it returns a list however on my template page I see <theader>Empty</tHeader> and <tbody>false</tbody> when passing my parameter t:souce="list" to my grid component, therefore my grid component only returns one row.

Some code snippets would be a great help.

Many thanks


besides the typo (see my comment) try to give the hashmap values as input to the newList method:

CollectionFactory.newList(MyHashMap.values());
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号