1 Reply Latest reply on Jul 17, 2009 8:20 PM by IVAN BATISTA MORENO

    Fix the problem

    IVAN BATISTA MORENO Newbie

           
      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;
           }