public void destroy() {
   persist(PersistAction.DELETE, ResourceBundle.getBundle("/Bundle").getString("VentasDeleted"));
   if (!JsfUtil.isValidationFailed()) {
     selected = null; // Remove selection
     items = null; // Invalidate list of items to trigger re-query.
   }
 }
 public void create() {
   persist(
       PersistAction.CREATE, ResourceBundle.getBundle("/Bundle").getString("ProductosCreated"));
   if (!JsfUtil.isValidationFailed()) {
     items = null; // Invalidate list of items to trigger re-query.
   }
 }