private void performDestroy() { try { getFacade().remove(current); JsfUtil.addSuccessMessage( ResourceBundle.getBundle("/UsuarioAdministrativo").getString("ActividadusuarioDeleted")); } catch (Exception e) { JsfUtil.addErrorMessage( e, ResourceBundle.getBundle("/UsuarioAdministrativo").getString("PersistenceErrorOccured")); } }
public String create() { try { getFacade().create(current); JsfUtil.addSuccessMessage( ResourceBundle.getBundle("/UsuarioAdministrativo").getString("ActividadusuarioCreated")); return prepareView(current); } catch (Exception e) { JsfUtil.addErrorMessage( e, ResourceBundle.getBundle("/UsuarioAdministrativo").getString("PersistenceErrorOccured")); return null; } }
public SelectItem[] getItemsAvailableSelectOne() { return JsfUtil.getSelectItems(ejbFacade.findAll(), true); }
public SelectItem[] getItemsAvailableSelectMany() { return JsfUtil.getSelectItems(ejbFacade.findAll(), false); }
public String destroy(Actividadusuario p) { current = p; getFacade().remove(current); JsfUtil.addSuccessMessage("Actividad eliminada satisfactoriamente"); return "List"; }