2 Replies Latest reply on Feb 5, 2007 10:03 PM by henrik lindberg

    @DataModel confused over name...

    henrik lindberg Apprentice

      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