I\'d like to handle a JSF @PostConstruct exception by redirecting to another page. I\'m using FacesContext.getCurrentInstance().getExternalContext().dispatch(\"page.j
Look at this similar question: JSF navigation redirect to previous page
According to BalusC you can use the following instead of dispatch:
FacesContext.getCurrentInstance().getExternalContext().redirect(url);
Or, in order to stop rendering the current page, put
FacesContext.getCurrentInstance().responseComplete();
Regards