4 Replies Latest reply on Aug 11, 2006 5:53 AM by Richard Leherpeur

    The pageflow attribute of @Begin not always processed proper

    Richard Leherpeur Novice

      I defined a SFSB as follow:

      @Stateful
      @Name("someAction")
      public class SomeAction implements Some {
      
       public void testOne() {
       this.delegate();
       }
      
       @Begin(id="MY_ID", pageflow="testflow")
       public void delegate() {
       }
      }
      


      In a jsp, if the action of a button is set to #{someAction.testOne}, something goes wrong and the flow doesn't start. The current page is reloaded.
      If the button action is set to #{someAction.delegate}, then the flow starts properly.

      Now if I do the following, it works fine as well:

      @Stateful
      @Name("someAction")
      public class SomeAction implements Some {
      
       public void testOne() {
       this.delegate();
       }
      
       @Begin(id="MY_ID")
       public void delegate() {
       Pageflow.instance().begin("testflow");
       }
      }
      


      So it seems that when a method of the SFSB call the delegate method, the pageflow attribute of the @Begin annotation is not processed properly.
      Unless I'm not supposed to do what I'm doing (But I need to perform some check before starting the flow or not), I believe this could be a bug.

      I hope this can help.