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