Java List
type does not have a getSize()
method. Is there a way to tell reference the size()
method in EL instead? I've tried #{aList.size > 10}
but that is not working.
Asked
Active
Viewed 40 times
0
1 Answers
1
Simply do #{aList.size() > 10}
(suffix the method with parentheses).

Jasper de Vries
- 19,370
- 6
- 64
- 102
-
1Noted should be that this requires a minimum of EL 2.2, but based on OP's question history OP is already using that. See also https://stackoverflow.com/q/3284236 – BalusC Jul 14 '22 at 08:08