There is no βeasyβ way to do this; you must look at the complete collection yourself. You can write a helper method that checks your list for null values:
public boolean isAllScoresNull() { for(Person p : people) { if(p.getScore != null) return false; } return true; }
and use this via EL on your page:
... <h:column rendered="#{myBeanController.allScoresNull}"> ...
You can also define a TagFunction for this task.
source share