Hi! Useful method for AbstractFacesBean also could be something like

public void gotoView(String viewName) {
 if (viewName!= null) {
        UIViewRoot newView =
getFacesContext().getApplication().getViewHandler().createView(getFacesContext(),
viewName);
                        getFacesContext().setViewRoot(viewName);
                }
}

and

public void navigate(String fromView,String outcome) {
getFacesContext().getApplication().getNavigationHandler().handleNavigation(getFacesContext(),
fromView, outcome);
}
--
Seeing is believing

Reply via email to