Is it possible tu handle a navigation in the constructor of a managed bean???
I code like this but without success
public class Atah {
public Atah(){
navegaProMódulo();
tentadenovo();
}
private void navegaProMódulo() {
FacesContext fc = FacesContext.getCurrentInstance();
UIViewRoot vw = fc.getApplication().getViewHandler().createView(fc,"/sag/chooseModule.jsp");
fc.setViewRoot(vw);
fc.responseComplete();
}
private void tentaDenovo(){
FacesContext fc = FacesContext.getCurrentInstance();
fc.getApplication().getNavigationHandler().handleNavigation(fc,null,"chooseModule");
}
}
- How to handle a navigation, or redirect, in the constructo... Dudu
- Re: How to handle a navigation, or redirect, in the c... Andrew Robinson

