1 Reply Latest reply on Jan 10, 2008 12:55 PM by Pete Muir

    Veto Page Flow

    Tom Goring Apprentice


      Is there a way to veto the transition in a page flow... e.g. in the case of some business rule failure ?


      the bean wizard.saveStuff adds a bunch of faces messages and returns to indicate a fail.

      <page name="PageX" view-id="/pageX.xhtml">
       <transition name="previous" to="PageY"/>
       <transition name="next" to="PageX">
       <action expression="#{wizard.saveStuff}"/>

      In spring webflow you can define that you transition only transition on certain return codes.

      I can see you could do this with a decision states but I would have to code one for each view state.

      Thanks in advance.