JavaServer Faces: How to print the size of a list ?

If you are using a datatable or any other component of Primefaces or JSF and want to print the size of a list or collection you will find problems. Below is an example of how to do this.

<h:outputText value=”#{fn:length(myController.myList)}”/>

Leave a comment