【发布时间】:2011-09-11 01:55:12
【问题描述】:
以下内容似乎是等价的:
FacesContext.getCurrentInstance().getApplication().getNavigationHandler().handleNavigation("/index.xhtml?faces-redirect=true");
FacesContext.getCurrentInstance().getExternalContext().redirect("/testapp/faces/index.xhtml");
有什么不同吗?应该在什么时候使用?
【问题讨论】:
标签: jsf redirect jsf-2 navigation