この場合、リダイレクトが機能しない原因は何ですか?
@HandlesExceptions
public class ExceptionHandler {
public void handleException(@Handles CaughtException<Throwable> e,
Messages messages
FacesContext facesContext){
messages.error("something went wrong");
facesContext.getApplication().getNavigationHandler()
.handleNavigation(facesContext, null, "foopage");
}
}
例外ハンドラ メソッドが処理されていることを確認します。例外ハンドラーメソッドでエラーページにリダイレクトするにはどうすればよいですか?