1 Reply Latest reply on Sep 25, 2008 6:31 PM by Nicola Ben

    pageflow: how to start to a page

    Nicola Ben Novice

      Hi,
      I have a pageflow:



      <start-page name="chooseSample" view-id="/protected/exam/Exam1.xhtml"
                no-conversation-view-id="/protected/exam/ExamList.xhtml">
                ...
      </start-page>
      
      <page name="chooseAnalysis" view-id="/protected/exam/Exam2.xhtml">
                ...
      </page>
      
      <page name="insertResults" view-id="/protected/exam/Exam3.xhtml">
                ...
      </page>     
      
      <page name="end" view-id="/protected/exam/ExamList.xhtml">
                <end-conversation />
                <redirect />
      </page>




      The flow is in the order as shown.
      But I need to be able to start my flow from step chooseAnalysis, because from a listTable I want to select a sample and start an analysis.
      But I get an illegal navigation.
      How can I do that, please?


      Thank you,
      nic

        • 1. Re: pageflow: how to start to a page
          Nicola Ben Novice

          Ok, solved!
          I must add this to my pageflow definition:


          <start-state>
               <transition name="analysis" to="chooseAnalysis" />
               <transition name="results" to="insertResults" />
          </start-state>



          and when I must add the correct action to s:link



          <s:link ... action="analysis" propagation="begin">




          Bye,
          Nico