public void pageValidate(PageEvent event) {
//how to use pageEvent to sendRedirect to google.com ?
答案 0 :(得分:1)
对于外部网站,请使用:
throw new RedirectException("http://google.com")
要重定向到应用程序内的页面,请使用:
throw new PageRedirectException("page");