コード例 #1
0
 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.
   }
 }
コード例 #2
0
 public void create() {
   persist(
       PersistAction.CREATE, ResourceBundle.getBundle("/Bundle").getString("ProductosCreated"));
   if (!JsfUtil.isValidationFailed()) {
     items = null; // Invalidate list of items to trigger re-query.
   }
 }