@javax.faces.bean.ViewScoped
public class Controlador {
private List<List> estadistico;
@PostConstruct
public void inicializar(){
this.estadistico = new ArrayList<List>();
this.estadistico.add( Arrays.asList( new Integer[]{0,1,24}));
this.estadistico.add( Arrays.asList( new Integer[]{5,1,34}));
this.estadistico.add( Arrays.asList( new Integer[]{12,1,4}));
}
//getter's and setter's
}
<p:dataTable value="#{controlador.estadistico}" var="lista">
<p:columns value="#{controlador.estadistico[0]}" columnIndexVar="i" var="testcolvar" >
#{lista[i]}
</p:columns>
</p:dataTable>
note:var="testcolvar" 必须写。否则
columnIndexVar="i" i娶不到值。无法显示列表内容!!!!