Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试使用网格组件显示哈希图。如果我使用
List list = CollectionFactory.newList(MyHashMap);
它返回一个列表,但是在我的模板页面上我看到<theader>Empty</tHeader>并且<tbody>false</tbody>将我的参数传递t:souce="list" 给我的网格组件时,因此我的网格组件只返回一行。
<theader>Empty</tHeader>
<tbody>false</tbody>
t:souce="list"
一些代码片段会很有帮助。
非常感谢
除了拼写错误(请参阅我的评论)之外,尝试将 hashmap 值作为 newList 方法的输入:
CollectionFactory.newList(MyHashMap.values());