• Post Reply Bookmark Topic Watch Topic
  • New Topic

HashMap Output to Datatable

 
Andy Holm
Ranch Hand
Posts: 86
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How would I accomplish the following using a JSF datatable? reportBean.uniquePersons is a HashMap of String -> ArrayList

 
Bauke Scholtz
Ranch Hand
Posts: 2458
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can only use DataModel or List<DTO> or List<Map<K, V>> in a datatable, not a sole Map<K, V>.

However, the inner c:forEach can be replaced by a datatable. The outer cannot. And you should be using t:dataList instead of c:forEach here.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!