2011-10-19 46 views

回答

2

你不能從一個動作監聽方法中導航。您只能從實際的操作方法中進行導航,該方法綁定到UICommand組件的action屬性。

但是,您可以發送重定向程序通過ExternalContext#redirect()

FacesContext.getCurrentInstance().getExternalContext().redirect("page.xhtml"); 
相關問題