Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » JBoss User Help »

[jboss-user] [JBoss Seam] - EL and accessing .size or isEmpty

scott.stark@jboss.org

2007-05-04


A coding question ... with EL how do I get to things like .size.. or .isEmpty its seems very hard to get to!!!

I have this...

| <h:outputText value="#{messages.no_keywords}" rendered="#{advertisingCampaign.keywords == null}"/>
|

and want this

| <h:outputText value="#{messages.no_keywords}" rendered="#{advertisingCampaign.keywords == null || advertisingCampaign.keywords.size == 0}"/>
|

But size is "not a property" and incidently nither is isEmpty !!!

keywords is a LinkedHashSet (to ensure retreival order matches insertion order) and I am pretty sure that this is NOT a factor...

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4043362#4043362

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4043362
_______________________________________________
jboss-user mailing list
jboss-user@(protected)
https://lists.jboss.org/mailman/listinfo/jboss-user
©2008 junlu.com - Jax Systems, LLC, U.S.A.