3 Replies Latest reply on Oct 24, 2009 1:10 PM by leandro godoy

    Problems with @Datamodel

    leandro godoy Apprentice
       @DataModel
          @Out(required = false)
          private List<Cargo> cargos;
      
      
      @Factory("cargos") 
          public void listarTodos() { //this method return a List<Cargo>
              cargos = daoCargo.listarTodos();
             
          }
      
      


      I'm having a problem with the return of the method daoCargo.listarTodos(), it says it can not convert a List Cargo in a DataModel, what is wrong?
      Thank you.