public String save() {
   contactDAO.update(getBean());
   FacesContext.getCurrentInstance()
       .addMessage(
           null, new FacesMessage(FacesMessage.SEVERITY_INFO, "Editado!", "PrimeFaces rocks!"));
   return "list.xhtml";
 }
 @PostConstruct
 public void loadBean() {
   FacesContext facesContext = FacesContext.getCurrentInstance();
   String id = (String) facesContext.getExternalContext().getRequestParameterMap().get("id");
   setBean(contactDAO.load(Long.valueOf(id)));
 }