开发者

Tapestry5 display grid component using a hashmap

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜