2 Replies Latest reply on Jun 21, 2007 8:14 AM by pmuir

    How to call action method from pageflow

      It's ok when I call a transition from current page and then that transition point on some decision and that decision calls action...so on and so on...
      but what i REALLY need is to call action method when I switch between conversations in conversation list and selecting one conversation entry in that conversation list.So to explain it simple again i need to call action whenever I come to pageflow in this exaple named "sample"...

      <start-page name="sample" view-id="/sample/sample/PageSample.jsp"
      timeout="3600000">

      #{messages['sample.sample']}

      ......
      </start-page>




        • 1. Re: How to call action method from pageflow

           

          <start-page name="sample" view-id="/sample/sample/PageSample.jsp"
           timeout="3600000">
           <redirect/>
           <description>#{messages['sample.sample']}</description>
           <transition name="sampleTransition" to="sampleDecision"/>
           </start-page>
          
           <decision name="sampleDecision" expression="#{sampleBean.sampleAction}">
           <transition name="OK" to="sample"/>
           <transition name="NOT" to="notDefinedSample"/>
           </decision>
          


          • 2. Re: How to call action method from pageflow
            pmuir

            You can nest

            <action expression="#{foo.bar}" />
            on both a page (and start-page) and transition elements and cause the action to be called. You will probably find it easier to write pageflows if you use the pageflow-X.X.xsd