20 October 2013

Calling taskflow programatically in ADF

Scenario:

If you have two bounded task flow and on one task flow you want to show the employees data and on other you want to show department data. You have to create two page fragment, one will be putted on employee task flow and other will be on department. Now we are going to call department taskflow from employee taskflow.


In order to do this you have to call the following code from your manage bean.


        FacesContext facesContext = FacesContext.getCurrentInstance();
                    NavigationHandler navHandler =
                        facesContext.getApplication().getNavigationHandler();
                    navHandler.handleNavigation(facesContext, null, "dept");


That's all :) Happy Coding.

0 on: "Calling taskflow programatically in ADF"