Question

public void pageValidate(PageEvent event) {
        //how to use pageEvent to sendRedirect to google.com ?
Was it helpful?

Solution

For an external site, use:

throw new RedirectException("http://google.com")

To redirect to a page withing the application use:

throw new PageRedirectException("page");
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top