Question: How would I get the length of an `ArrayList` using a JSF EL expression? 

```
#{MyBean.somelist.length}

```

does not work.

Answer: 
After 7 years... the facelets solution still works fine for me as a jsf user

include the namespace as 
`xmlns:fn="http://java.sun.com/jsp/jstl/functions"`

and use the EL as 
`#{fn:length(myBean.someList)}` for example if using in jsf ui:fragment below example works fine

```
<ui:fragment rendered="#{fn:length(myBean.someList) gt 0}">
    <!-- Do something here-->
</ui:fragment>

```
You can get the length using the following EL:

**#{Bean.list.size()}**