[jboss-user] [JBoss Seam] - @DataModel confused over name...

henrik.lindberg do-not-reply at jboss.com
Mon Feb 5 21:10:50 EST 2007


I am using a @DataModel annotation for a variable like this:

  | @DataModel("availableCars")
  | private List<Car> m_availableCars;
  | 

and I have a factory model

  | @Factory("availableCars")
  | public void findCars()
  |  //...
  | 

When I use this combination, the <h:dataTable> picks up the value ok, but when I use regular EL statments like:

  | <h:outputText value="There are no cars to display" rendered="#{empty availableCars}"/>
  | 
The text does not get rendered even when the factory method creates an empty List.

After some testing, I notived that the Debug ouput page showed the bound variable m_availableCars, and not as I expected availableCars


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

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



More information about the jboss-user mailing list