Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

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!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

JSF 2.2 Navigating to a flow using a navigation rule issue.

vfloresiiiSep 19 2013 — edited Oct 6 2013

I am trying to use a navigation rule to enter a jsf2.2 flow.  The rule works and redirects me to the flow start view; however, i get the following error:

WELD-001303 No active contexts for scope type javax.faces.flow.FlowScoped

This is my navigation rule in the faces-config.xml:

<navigation-rule>

     <from-view-id>/section1/index.xhtml</from-view-id>

          <navigation-case>

               <from-outcome>flow1</from-outcome>

                    <to-view-id>/exampleFlow/exampleFlow.xhtml</to-view-id>

                    <redirect></redirect>

          </navigation-case>

</navigation-rule>

This is my flow definition:

<flow-definition id="exampleFlow">

        <flow-return id="exit">

            <from-outcome>/index.xhtml</from-outcome>

        </flow-return>

</flow-definition>

This is my directory structure:

/section1/

     index.xhtml

/exampleFlow/

     exampleFlow-flow.xml

     exampleFlow.xhtml

     exampleFlow2.xthml

I have no issues if I enter the flow using the following:

<h:link value="Enter Flow" outcome="exampleFlow"/>

Any ideas on how to do enter a flow using a navigation rule?

Comments

Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Nov 3 2013
Added on Sep 19 2013
4 comments
10,388 views