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; } }
public SelectItem[] getItemsAvailableSelectOne() { return JsfUtil.getSelectItems(ejbFacade.getAll(), true); }
public SelectItem[] getItemsAvailableSelectMany() { return JsfUtil.getSelectItems(ejbFacade.getAll(), false); }