Hi,
I am using JDev 11g.
In the beforePhase of my jsf page, a method is called to do some processing, after which it will move on to the next activity in the task flow.
I used the navigation handler but seems like there is no effect.
NavigationHandler nvHndlr = phaseEvent.getFacesContext().getCurrentInstance().getApplication().getNavigationHandler();
nvHndlr.handleNavigation(phaseEvent.getFacesContext(), null, "name of taskflow activity");
I even tried having action event on a button but it just stays on the same page.
UIViewRoot root = fctx.getViewRoot();
RichCommandButton button =
(RichCommandButton) root.findComponent("pt1:cbSuccess");
ActionEvent actionEvent = new ActionEvent(button);
actionEvent.queue();
Is it because it cannot navigate via beforePhase?
Please assist. Thanks.