myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael Heinen" <...@recommind.com>
Subject JSF EL - empty operator
Date Wed, 15 Nov 2006 10:25:04 GMT
Hi,

 

Is the empty operator of the JSF EL working ?

I want to display some text if an ArrayList is empty, but this does not
work in my case

 

snippet:

<t:dataList id="results" var="cat"

   value="#{MyController.filters['key'].values}">

...

</t:dataList>

<h:outputText value="***no results found***" 

  rendered="#{empty MyController.filters['key'].values}"/>

  

  

MyController.filters['key'].values is an empty ArrayList.

Are there any alternatives to check whether a collection is empty via EL
?

 

Michael


Mime
View raw message