2
在这种情况下可能导致不工作重定向的原因是什么?Seam 3异常处理程序 - 重定向不起作用
@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");
}
}
我确定处理异常处理程序方法。如何重定向到异常处理程序方法中的某个错误页面?