Skip to Main Content

Java Development Tools

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Checking arraylist size in Groovy?

612177Jul 13 2010 — edited Jul 13 2010
Hello. I need to check wether an arraylist has values or not, in order to render a component. How do I do this? I've tried everything I can think of from:

#{not empty sessionScope.UserBean.securingAttrs}

to

#{ sessionScope.UserBean.securingAttrs.size != 0}

How do I do this?

Thanks!
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 10 2010
Added on Jul 13 2010
1 comment
1,147 views