Created
September 6, 2010 12:09
-
-
Save cirpo/566956 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public class UtenteManagedBean{ | |
| public String deleteUtente() { | |
| Utente utente = (Utente) getFacesContext().getApplication().createValueBinding("#{list}").getValue(getFacesContext()); | |
| utenteManagerLocal.removeUtente(utente); | |
| return "success"; | |
| } | |
| } | |
| public class UtenteManager{ | |
| @PersistenceContext protected EntityManager em; | |
| public void removeUtente(Utente e) { | |
| em.merge(e); | |
| em.remove(e); | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment