How do you get the length of a list in the JSF expression language?

后端 未结 7 1570
忘掉有多难
忘掉有多难 2020-12-13 03:04

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

#{MyBean.somelist.length}

does not work.

7条回答
  •  抹茶落季
    2020-12-13 03:47

    You can eventually extend the EL language by using the EL Functor, which will allow you to call any Java beans methods, even with parameters...

提交回复
热议问题