// ____________________________MÉTODOS_______________________________ public String persist() { System.out.println("Ingreso a grabar el users: " + current.getUsuario()); ejbFacade.create(current); this.endConversation(); String summary = ResourceBundle.getBundle("/Bundle").getString("CursoCreated"); JsfUtil.addInformacionMessage(summary); FacesContext.getCurrentInstance().getExternalContext().getFlash().setKeepMessages(true); return "/index"; }
public SelectItem[] getItemsAvailableSelectOne() { return JsfUtil.getSelectItems(ejbFacade.findAll(), true); }
// ______________________MÉTODOS PARA DEVOLVER UNA LISTA DE CURSOS_______________________// public SelectItem[] getItemsAvailableSelectMany() { return JsfUtil.getSelectItems(ejbFacade.findAll(), false); }