[jboss-user] [JBoss Seam] - DataModel annotation and empty EL operator

chawax do-not-reply at jboss.com
Mon Nov 26 08:56:29 EST 2007


In a Seam component, I have an array attribute with @DataModel annotation and an associated @Factory metod.

@org.jboss.seam.annotations.datamodel.DataModel
  | protected myPackage.VOProcessus[] listeProcessus;

@javax.ejb.TransactionAttribute(javax.ejb.TransactionAttributeType.REQUIRES_NEW)
  | @org.jboss.seam.annotations.Factory(value = "listeProcessus")
  | @org.jboss.seam.annotations.Observer("listeProcessusUpdated")
  | public void getListeProcessus() {
  | ...
  | }

I want to test if this array is empty in a rendered attribute, so I wrote the following EL expression :

rendered="#{empty listeProcessus}"

But it looks like empty operator always returns false. I don't have this problem when I remove the @DataModel annotation. 

Is this something expected or is there something I did wrong ?

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

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4107728



More information about the jboss-user mailing list