FacesContext context = FacesContext.getCurrentInstance();
context.addMessage(null , message);
return "";
}
UserDao userDao = UserDao.createInstance();
User updatedUser = new UserImpl();
updatedUser.setUsername(this.username);
updatedUser.setPassword(this.password);
userDao.update(updatedUser);
visitBean.setCredentials(new CredentialsWrapper(this.username, this.password));
ResourceBundleUtil bundleUtil = ResourceBundleUtil.getInstance();
FacesMessage message = new FacesMessage( bundleUtil.getMessage("user_updated") );