0

I want to represent my list as follows using a datatable in primefaces:

+----------+------------+-----------+
|Country   |   Name     |   Age     |
+----------+------------+-----------+
|          |    xxxxx   | 25        |
|          +------------+-----------+        
|    A     |    yyyyy   |  22       |
|          +------------+-----------+
|          |    zzzz    |...
+----------+------------+
|          |            |..
....

I have a List:

List<MyObject>

MyObject has following attributes:

Country
Name
Age
rags
  • 2,580
  • 19
  • 37
callafa
  • 385
  • 2
  • 6
  • 20
  • What is your requirement ? What is the problem you are facing ? – rags Aug 16 '13 at 11:21
  • What have you tried? Did you look at [this](http://stackoverflow.com/a/14031888/1199132) or [this](http://stackoverflow.com/questions/13649578/how-to-represent-nested-data-in-primefaces-datatable) answers? – Aritz Aug 16 '13 at 11:25
  • My requirement is to be able to display data of my list grouped by country. – callafa Aug 16 '13 at 14:16
  • Do I need to have a `Map>`?? I want to be able to display the list of my objects by country, the list that i have actually is a list of MyObject not sorted by country. – callafa Aug 16 '13 at 14:47
  • I used the solution proposed in the link: – callafa Aug 22 '13 at 14:26

0 Answers0