Using JSF 2.1 with primefaces
class FOO{
String name;
String value;
public void setName(String name){
this.name=name;
}
public String getName(){
return this.name;
}
public void setValue(String value){
this.value=value;
}
public String getValue(){
return this.value;
}
}
I have an Map<String, List<FOO>>
Header name should be Key of the Map. I need to create multiple columns (i.e. size of Map) and each column should have the list of FOO to display FOO.Name in rows.
For Example : if size of map is 4
Coulmns-----Key1
ROWs of 1st column - List<FOO> against Key1
Coulmns-----Key2
ROWs of 1st column - List<FOO> against Key2
Coulmns-----Key3
ROWs of 1st column - List<FOO> against Key3
Coulmns-----Key4
ROWs of 1st column - List<FOO> against Key4
Can someone tell me what component to use for displaying this type of output in xhtml page ? I have tried using dynamic datatable creation but not able to show this.