Skip to Main Content

Java Development Tools

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Navigating task flow programmatically

2805191Feb 18 2017 — edited Feb 20 2017

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.

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 20 2017
Added on Feb 18 2017
4 comments
218 views