3 Replies Latest reply on May 5, 2007 12:53 AM by Tony Herstell

    EL and accessing .size or isEmpty

    Tony Herstell Master

      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...