1 Reply Latest reply on Jul 17, 2009 8:20 PM by ibmoreno

    Fix the problem

    ibmoreno

           
      I found the problem is that the list must be updated so that the Bean is the same as the selected list.




      public List<Cargo> getCargos() {
                cargos = seamDatabase.createCriteria(Cargo.class).list();
                return cargos;
           }





      Previous


      public List<Cargo> getCargos() {
                      if (cargos == null)
                   cargos = seamDatabase.createCriteria(Cargo.class).list();
                return cargos;
           }