Skip to content

Instantly share code, notes, and snippets.

@cirpo
Created September 6, 2010 12:09
Show Gist options
  • Select an option

  • Save cirpo/566956 to your computer and use it in GitHub Desktop.

Select an option

Save cirpo/566956 to your computer and use it in GitHub Desktop.
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