Wednesday, July 28, 2010

Navigating within Task Flow activities programmatically

Using the NavigationHandler Class we can programmatically navigate to a different activity based on an action within an ADF Task Flow. Sample code below:


    public void navBasedOnAction(String action){
        NavigationHandler navHndlr = FacesContext.getCurrentInstance().getApplication().getNavigationHandler();
         navHndlr.handleNavigation(FacesContext.getCurrentInstance(), null , "finish");
    }



No comments: