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