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");
   }
}

Reply via email to