5 Replies Latest reply on Jul 17, 2006 12:23 AM by Gavin King

    Backbutton Example

    khien huey siow Newbie

      Anyone has an example to share on how to get the prevent backbutton? So far, all the examples allowed the backbutton operation and it was messing up conversation. Thanks.

        • 1. Re: Backbutton Example
          Marcelo Farinelli Newbie

          Did you try the booking example? It seems to handle the back button very well.

          • 2. Re: Backbutton Example
            Basel Al-Mustafa Newbie

            jBPM pageflow solves the problem of backbutton. Take a look at Chapter 4 of the documentation.

            • 3. Re: Backbutton Example
              khien huey siow Newbie

              Thanks for the pointers. I just tried the booking example. When I used the backbutton and later clicked on a action button, it displayed no conversation message. I was expecting the system would redisplay the current page immediately as soon as I hit the backbutton.

              I guess I've to debug my current test program. It didn't display the currently active state page.

              • 4. Re: Backbutton Example
                khien huey siow Newbie

                I reprogrammed my test example and now I got an example. There must be something I didn't get it right to have Seam to redisplay the current page.

                21:23:34,937 ERROR [PhaseListenerManager] Exception in PhaseListener RESTORE_VIEW(1) afterPhase
                java.lang.IllegalStateException: No active conversation context
                at org.jboss.seam.core.Process.instance(Process.java:32)
                at org.jboss.seam.core.TaskInstance.instance(TaskInstance.java:51)
                at org.jboss.seam.contexts.BusinessProcessContext.getTaskInstance(BusinessProcessContext.java:213)
                at org.jboss.seam.contexts.BusinessProcessContext.get(BusinessProcessContext.java:51)
                at org.jboss.seam.contexts.Contexts.lookupInStatefulContexts(Contexts.java:155)
                at org.jboss.seam.Component.getInstance(Component.java:1245)

                • 5. Re: Backbutton Example
                  Gavin King Master

                   

                  "khsiow" wrote:
                  I was expecting the system would redisplay the current page immediately as soon as I hit the backbutton.


                  That is definitely not the expectation, and would not be desirable.