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

    Seam pageflow in a4j:include

    vorix

      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">
       </a4j:include>
       </ui:define>
      </ui:composition>


      The PlusMius page ist the Startpage of the PageFlow:

      <pageflow-definition name="urlFlow"
       xmlns="http://jboss.com/products/seam/pageflow"
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
       xsi:schemaLocation="http://jboss.com/products/seam/pageflow http://jboss.com/products/seam/pageflow-2.0.xsd">
       <start-page name="plusMinus"
       view-id="/pageFlowTest/plusMinus.xhtml">
       <transition name="decrement" to="niedriger0"></transition>
       <transition name="increment" to="hoeher10"></transition>
       </start-page>
      
       <decision name="niedriger0"
       expression="#{pageFlowTest.isLowerThan0()}">
       <transition to="lower0" name="true"></transition>
       <transition name="false" to="plusMinus"></transition>
       </decision>
       <decision name="hoeher10"
       expression="#{pageFlowTest.isHigherThan10()}">
       <transition to="higher10" name="true"></transition>
       <transition name="false" to="plusMinus"></transition>
       </decision>
      
       <page name="higher10" view-id="/pageFlowTest/higherThan10.xhtml">
       <transition name="fertig" to="Main"></transition>
       </page>
       <page name="lower0" view-id="/pageFlowTest/lowerThan0.xhtml">
       <transition name="fertig" to="Main"></transition>
       </page>
      
       <page name="Main" view-id="/home.xhtml">
       <end-conversation/>
       <redirect></redirect>
       </page>
      
      </pageflow-definition>


      The Pageflow is startet via pages.xml:

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


      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.

      Thanks