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.
1 Answer
Simply do #{aList.size() > 10} (suffix the method with parentheses).
1 Comment
BalusC
Noted 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 stackoverflow.com/q/3284236