Let’s say you want to call a a taskFlow activity, for example, a “back” activity, but declarative within your java code:
Use the below code in a bean in order to call a task flow navigation within your ADF application:
import javax.faces.application.NavigationHandler; import javax.faces.context.FacesContext; .... NavigationHandler backHnd = FacesContext.getCurrentInstance().getApplication().getNavigationHandler(); backHnd.handleNavigation(FacesContext.getCurrentInstance(), null,"back");
Good Luck!
Leave a Reply