コード例 #1
0
 private void performDestroy() {
   try {
     getFacade().removeGroup(current);
     JsfUtil.addSuccessMessage(ResourceBundle.getBundle(BUNDLE).getString("GroupsDeleted"));
   } catch (Exception e) {
     JsfUtil.addErrorMessage(
         e, ResourceBundle.getBundle(BUNDLE).getString("PersistenceErrorOccured"));
   }
 }
コード例 #2
0
 public PageNavigation create() {
   try {
     getFacade().createGroup(current);
     JsfUtil.addSuccessMessage(ResourceBundle.getBundle(BUNDLE).getString("GroupsCreated"));
     return prepareCreate();
   } catch (Exception e) {
     JsfUtil.addErrorMessage(
         e, ResourceBundle.getBundle(BUNDLE).getString("PersistenceErrorOccured"));
     return null;
   }
 }