4 Replies Latest reply on Oct 6, 2013 3:23 PM by ed07c977-7e5d-4bb5-931d-d7968aff0bc8

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

    vfloresiii

      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?