0

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 1

1

Simply do #{aList.size() > 10} (suffix the method with parentheses).

Sign up to request clarification or add additional context in comments.

1 Comment

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.