在即将发布的JSF 2.2之前,
<h:dataTable>/
<p:dataTable>不支持
Collection<E>。它仅支持其他功能
List<E>。
您需要更换
public Collection<Properties> getProperties() throws Exception{ return properties.values();}通过
private List<Properties> propertiesAsList;public List<Properties> getProperties() throws Exception{ return propertiesAsList;}然后在地图初始化后的某个地方执行此操作
propertiesAsList = new ArrayList<Properties>(properties.values());
(注意:不要在吸气剂中做!)



