0 Replies Latest reply on Mar 18, 2008 5:57 AM by Stefan Eyerich

    Seam pageflow in a4j:include

    Stefan Eyerich Newbie

      Hi all,

      I got the following situation:
      I have an Seam pageflow in my application. The workflow itself works correctly, but it does an full page refresh every time the user doing an action which will match to an transition criteria. It does so too, when i define an a4j:commandbutton to only rerender a part of the site.
      I believe this is because of the transition richfaces switches to "ajax request creates non-ajax response" mode.

      I tried next to include the pageflow in an a4j:include :

      <ui:composition template="../layout/template.xhtml">
       <ui:define name="body">
       <a4j:status startText="Anfrage läuft.." stopText=""></a4j:status>
       <br />
       <a4j:include viewId="/pageFlowTest/plusMinus.xhtml">

      The PlusMius page ist the Startpage of the PageFlow:

      <pageflow-definition name="urlFlow"
       xsi:schemaLocation="http://jboss.com/products/seam/pageflow http://jboss.com/products/seam/pageflow-2.0.xsd">
       <start-page name="plusMinus"
       <transition name="decrement" to="niedriger0"></transition>
       <transition name="increment" to="hoeher10"></transition>
       <decision name="niedriger0"
       <transition to="lower0" name="true"></transition>
       <transition name="false" to="plusMinus"></transition>
       <decision name="hoeher10"
       <transition to="higher10" name="true"></transition>
       <transition name="false" to="plusMinus"></transition>
       <page name="higher10" view-id="/pageFlowTest/higherThan10.xhtml">
       <transition name="fertig" to="Main"></transition>
       <page name="lower0" view-id="/pageFlowTest/lowerThan0.xhtml">
       <transition name="fertig" to="Main"></transition>
       <page name="Main" view-id="/home.xhtml">

      The Pageflow is startet via pages.xml:

      <page view-id="/pageFlowTest/plusMinus.xhtml">
       <begin-conversation join="true" pageflow="urlFlow"/>

      But this constellation doesnt work.

      I will be glad if someone knows how to get this to work, or alternativeley how to prevent Richfaces to switch in "ajax request creates non-ajax response" mode.