Tuesday, September 20, 2016

How to get size of a java collection in xhtml

Basically there are 2 ways to get the size of a collection / list in xhtml.
1. jstl function
#{ fn:length(myList) }
2. call the size() function directly
#{ myList.size() }

Done!!

No comments:

Post a Comment

LinkWithin

Related Posts Plugin for WordPress, Blogger...