【发布时间】:2013-01-14 17:49:41
【问题描述】:
将 JSF 2.1 与 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;
}
}
我有一个Map<String, List<FOO>>
标题名称应该是 Map 的 Key。我需要创建多个列(即 Map 的大小),并且每列都应该有 FOO 的列表以在行中显示 FOO.Name。
例如: 如果地图大小为 4
列-----Key1
第一列的行 - List<FOO> 针对 Key1
列--Key2
第一列的行 - List<FOO> 针对 Key2
列-----Key3
第一列的行 - List<FOO> 针对 Key3
列-----Key4
第一列的行 - List<FOO> 针对 Key4
谁能告诉我使用什么组件在 xhtml 页面中显示这种类型的输出?我尝试过使用动态数据表创建,但无法显示。
【问题讨论】:
标签: jsf-2 collections primefaces datatable loops