ユーザーが自分のアカウントを削除することを確認する必要があるかどうかをユーザーに確認する必要があります。
これはポップアップ画面がクールだと思います。しかし、ほとんどのブラウザはポップアップウィンドウをブロックします。
So I was trying to do that with popupPanel.
But I'm guessing that would not be possible because I have a commandLink inside of it, here's what I'm doind so far :
これは私のmanageBeanです:
public void deleteUser(){
try {
eaoUser.delete(userb.getUser());
//here I would like to refresh the popupPanel saying that was deleted with success and then logout
} catch (Exception e) {
view.errorMessage("ocorreu um erro, por favor tente novamente");
e.printStackTrace();
}
}
編集:
public String deleteUser() {
FacesContext.getCurrentInstance().getExternalContext().invalidateSession();
return "/index.xhtml?faces-redirect=true";
}
どのようにそれを行うにはどのようなアイデア?