[S2] Testing for size of Collection inside a s:if
Folks, How do I call the isEmpty() method (or any other non-bean conforming method) inside a s:if tag? I can test for null as: s:if test={collection == null } But, I also need to test for empty collection. Thank you in advance. hf
Re: [S2] Testing for size of Collection inside a s:if
--- Harring Figueiredo [EMAIL PROTECTED] wrote: s:if test={collection == null } s:if test=%{collection.isEmpty} d. Sucker-punch spam with award-winning protection. Try the free Yahoo! Mail Beta. http://advision.webevents.yahoo.com/mailbeta/features_spam.html - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [S2] Testing for size of Collection inside a s:if
Dave, Thank for the reply. I thought that this would call getIsEmpty(), from other examples I have seen. Let me try it again. hf On 4/11/07, Dave Newton [EMAIL PROTECTED] wrote: --- Harring Figueiredo [EMAIL PROTECTED] wrote: s:if test={collection == null } s:if test=%{collection.isEmpty} d. Sucker-punch spam with award-winning protection. Try the free Yahoo! Mail Beta. http://advision.webevents.yahoo.com/mailbeta/features_spam.html - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Sincerely, Harring Figueiredo Sr. Software Engineer Email: [EMAIL PROTECTED] Telephone: 941-256-0600 We never become truly spiritual by sitting down and wishing to become so. You must undertake something so great that you cannot accomplish it unaided.
Re: [S2] Testing for size of Collection inside a s:if
--- Harring Figueiredo [EMAIL PROTECTED] wrote: I thought that this would call getIsEmpty(), from other examples I have seen. It's a fake property because Java collections (and arrays... and... etc. :) are broken :/ d. Don't pick lemons. See all the new 2007 cars at Yahoo! Autos. http://autos.yahoo.com/new_cars.html - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]