Doh, Forget this, my mistake.

The outputText was in an area that wasn’t refreshed via ajax and contained old data.

 

Sorry

Michael


From: Michael Heinen [mailto:[EMAIL PROTECTED]
Sent: Mittwoch, 15. November 2006 11:25
To: MyFaces Discussion
Subject: JSF EL - empty operator

 

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

Reply via email to