7 Replies Latest reply on Feb 28, 2007 8:34 AM by Hari Cahyadi

    Back Button Problem

    Hari Cahyadi Newbie

      Dear All,

      I am using Seam 1.1.1 GA when I test my application using firefox it works find if I press the browser back button, but in the internet explorer when I press the back button it not works, but there is no exception in the log, what is my mistake? please help...

      Thanx and Regards
      -haric-

        • 1. Re: Back Button Problem
          Norman Richards Master

          What specific problem are you observing?

          • 2. Re: Back Button Problem
            Hari Cahyadi Newbie

            The problem is I canot use back button in internet explorer, when I hit back button my application won't go back to the previous page, it stays on the current page, I read the seam faq, and it says that seam handle the back button problem, but is there a clue to handle back button?

            • 3. Re: Back Button Problem
              Michail Jekimov Newbie

              Citation from Seam doc, section 7.1.2:

              <page name="checkout"
               view-id="/checkout.xhtml"
               back="enabled">
               <redirect/>
               <transition to="checkout"/>
               <transition name="complete" to="complete"/>
              </page>


              • 4. Re: Back Button Problem
                Hari Cahyadi Newbie

                I have tried this way but I still can do back buttoning :( any other suggestion?

                • 5. Re: Back Button Problem
                  Michail Jekimov Newbie

                  I'm using the same Seam version as you but I can use back button in both IE and Firefox (and if you look at Seam examples, they should all work with back button). So it seems to be something IE specific in your case (i.e. some weird javascript). Do you observe it in all pages of your app or only in some of them? It's difficult to say more without any source code...

                  • 6. Re: Back Button Problem
                    Hari Cahyadi Newbie

                    Thanks for all your answer and help, I have trial and error some posibilities to solve this problem, i.e : play with pages.xml and faces-config.xml and also web.xml, but still can't fix this problem, finally I try to upgrade to myfaces 1.1.5 and this can solved my problem partialy, I mean that in some page the behaviour of the back button still not correct, but this better than before(when I use myfaces 1.1.4) I can do back button-ing at all :)

                    For mjek2, sorry for this time I can't so you the source, coz of my company policies, not permit this

                    Anyway thanx again for all...

                    If there is a new workaround or some sugestion, please be kind to post here

                    Thanx and Regards,
                    -haric-

                    • 7. Re: Back Button Problem
                      Hari Cahyadi Newbie

                      I found something different in the log, when we success to do back button the log is like this :

                      15:51:23,734 362563 DEBUG [org.jboss.seam.jsf.SeamPortletPhaseListener] before phase: RENDER_RESPONSE(6)
                      15:51:23,734 362563 DEBUG [org.jboss.seam.util.Naming] JNDI InitialContext properties:{java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory, java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces}
                      15:51:23,734 362563 DEBUG [org.jboss.seam.jsf.AbstractSeamPhaseListener] beginning transaction prior to phase: RENDER_RESPONSE(6)
                      15:51:23,734 362563 DEBUG [org.jboss.seam.util.Naming] JNDI InitialContext properties:{java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory, java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces}
                      15:51:23,734 362563 DEBUG [org.jboss.seam.contexts.Lifecycle] >>> Begin web request
                      15:51:23,734 362563 DEBUG [org.jboss.seam.core.Manager] Found conversation id in request parameter: 12
                      15:51:23,734 362563 DEBUG [org.jboss.seam.core.Manager] No stored conversation, or concurrent call to the stored conversation
                      15:51:23,734 362563 DEBUG [org.jboss.seam.jsf.AbstractSeamPhaseListener] After restoring conversation context: ConversationContext(14)
                      15:51:23,734 362563 DEBUG [org.jboss.seam.core.Events] Processing event:org.jboss.seam.preRemoveVariable.org.jboss.seam.core.conversationList
                      15:51:23,734 362563 DEBUG [org.jboss.seam.core.Events] Processing event:org.jboss.seam.postRemoveVariable.org.jboss.seam.core.conversationList
                      15:51:23,734 362563 DEBUG [org.jboss.seam.core.Events] Processing event:org.jboss.seam.preRemoveVariable.org.jboss.seam.core.switcher
                      15:51:23,734 362563 DEBUG [org.jboss.seam.core.Events] Processing event:org.jboss.seam.postRemoveVariable.org.jboss.seam.core.switcher
                      15:51:23,734 362563 DEBUG [org.jboss.seam.core.Events] Processing event:org.jboss.seam.preRemoveVariable.org.jboss.seam.core.conversationStack
                      15:51:23,734 362563 DEBUG [org.jboss.seam.core.Events] Processing event:org.jboss.seam.postRemoveVariable.org.jboss.seam.core.conversationStack
                      15:51:23,734 362563 DEBUG [org.jboss.seam.Component] instantiating Seam component: org.jboss.seam.core.facesMessages
                      15:51:23,734 362563 DEBUG [org.jboss.seam.Component] initializing new instance of: org.jboss.seam.core.facesMessages
                      15:51:23,734 362563 DEBUG [org.jboss.seam.Component] done initializing: org.jboss.seam.core.facesMessages
                      15:51:23,734 362563 DEBUG [org.jboss.seam.core.Events] Processing event:org.jboss.seam.preSetVariable.org.jboss.seam.core.facesMessages
                      15:51:23,734 362563 DEBUG [org.jboss.seam.core.Events] Processing event:org.jboss.seam.postSetVariable.org.jboss.seam.core.facesMessages
                      15:51:23,734 362563 DEBUG [org.jboss.seam.core.Events] Processing event:org.jboss.seam.postCreate.org.jboss.seam.core.facesMessages
                      15:51:23,734 362563 DEBUG [org.jboss.seam.Component] instantiating Seam component: org.jboss.seam.core.conversation
                      15:51:23,734 362563 DEBUG [org.jboss.seam.Component] initializing new instance of: org.jboss.seam.core.conversation
                      15:51:23,734 362563 DEBUG [org.jboss.seam.Component] done initializing: org.jboss.seam.core.conversation
                      15:51:23,734 362563 DEBUG [org.jboss.seam.core.Events] Processing event:org.jboss.seam.preSetVariable.org.jboss.seam.core.conversation
                      15:51:23,734 362563 DEBUG [org.jboss.seam.core.Events] Processing event:org.jboss.seam.postSetVariable.org.jboss.seam.core.conversation
                      15:51:23,734 362563 DEBUG [org.jboss.seam.core.Events] Processing event:org.jboss.seam.postCreate.org.jboss.seam.core.conversation
                      15:51:23,734 362563 DEBUG [org.jboss.seam.Component] instantiating Seam component: org.jboss.seam.core.facesPage
                      15:51:23,734 362563 DEBUG [org.jboss.seam.Component] initializing new instance of: org.jboss.seam.core.facesPage
                      15:51:23,734 362563 DEBUG [org.jboss.seam.Component] done initializing: org.jboss.seam.core.facesPage
                      15:51:23,734 362563 DEBUG [org.jboss.seam.core.Events] Processing event:org.jboss.seam.preSetVariable.org.jboss.seam.core.facesPage
                      15:51:23,734 362563 DEBUG [org.jboss.seam.core.Events] Processing event:org.jboss.seam.postSetVariable.org.jboss.seam.core.facesPage
                      15:51:23,734 362563 DEBUG [org.jboss.seam.core.Events] Processing event:org.jboss.seam.postCreate.org.jboss.seam.core.facesPage
                      15:51:23,734 362563 DEBUG [org.jboss.seam.core.Events] Processing event:org.jboss.seam.beforePhase
                      15:51:23,750 362579 DEBUG [org.jboss.seam.jsf.SeamVariableResolver] resolving name: portal_messages
                      15:51:23,750 362579 DEBUG [org.jboss.seam.contexts.Contexts] found in event context: portal_messages
                      15:51:23,750 362579 DEBUG [org.jboss.seam.jsf.SeamVariableResolver] resolved name to Seam component
                      


                      and when we fail to do back button the log is like this :
                      15:54:49,890 568719 DEBUG [org.jboss.seam.jsf.SeamPortletPhaseListener] before phase: RENDER_RESPONSE(6)
                      15:54:49,890 568719 DEBUG [org.jboss.seam.util.Naming] JNDI InitialContext properties:{java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory, java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces}
                      15:54:49,890 568719 DEBUG [org.jboss.seam.jsf.AbstractSeamPhaseListener] beginning transaction prior to phase: RENDER_RESPONSE(6)
                      15:54:49,890 568719 DEBUG [org.jboss.seam.util.Naming] JNDI InitialContext properties:{java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory, java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces}
                      15:54:49,890 568719 DEBUG [org.jboss.seam.contexts.Lifecycle] >>> Begin web request
                      15:54:49,890 568719 DEBUG [org.jboss.seam.core.Manager] Found conversation id in request parameter: 18
                      15:54:49,890 568719 DEBUG [org.jboss.seam.core.Manager] Restoring conversation with id: 18
                      15:54:49,890 568719 DEBUG [org.jboss.seam.jsf.AbstractSeamPhaseListener] After restoring conversation context: ConversationContext(18)
                      15:54:49,890 568719 DEBUG [org.jboss.seam.core.Events] Processing event:org.jboss.seam.preRemoveVariable.org.jboss.seam.core.conversationList
                      15:54:49,890 568719 DEBUG [org.jboss.seam.core.Events] Processing event:org.jboss.seam.postRemoveVariable.org.jboss.seam.core.conversationList
                      15:54:49,890 568719 DEBUG [org.jboss.seam.core.Events] Processing event:org.jboss.seam.preRemoveVariable.org.jboss.seam.core.switcher
                      15:54:49,890 568719 DEBUG [org.jboss.seam.core.Events] Processing event:org.jboss.seam.postRemoveVariable.org.jboss.seam.core.switcher
                      15:54:49,890 568719 DEBUG [org.jboss.seam.core.Events] Processing event:org.jboss.seam.preRemoveVariable.org.jboss.seam.core.conversationStack
                      15:54:49,890 568719 DEBUG [org.jboss.seam.core.Events] Processing event:org.jboss.seam.postRemoveVariable.org.jboss.seam.core.conversationStack
                      15:54:49,890 568719 DEBUG [org.jboss.seam.Component] instantiating Seam component: org.jboss.seam.core.facesPage
                      15:54:49,890 568719 DEBUG [org.jboss.seam.Component] initializing new instance of: org.jboss.seam.core.facesPage
                      15:54:49,890 568719 DEBUG [org.jboss.seam.Component] done initializing: org.jboss.seam.core.facesPage
                      15:54:49,890 568719 DEBUG [org.jboss.seam.core.Events] Processing event:org.jboss.seam.preSetVariable.org.jboss.seam.core.facesPage
                      15:54:49,890 568719 DEBUG [org.jboss.seam.core.Events] Processing event:org.jboss.seam.postSetVariable.org.jboss.seam.core.facesPage
                      15:54:49,890 568719 DEBUG [org.jboss.seam.core.Events] Processing event:org.jboss.seam.postCreate.org.jboss.seam.core.facesPage
                      15:54:49,890 568719 DEBUG [org.jboss.seam.core.Events] Processing event:org.jboss.seam.beforePhase
                      15:54:49,890 568719 DEBUG [org.jboss.seam.jsf.SeamVariableResolver] resolving name: portal_messages
                      15:54:49,890 568719 DEBUG [org.jboss.seam.contexts.Contexts] found in event context: portal_messages
                      15:54:49,890 568719 DEBUG [org.jboss.seam.jsf.SeamVariableResolver] resolved name to Seam component
                      15:54:49,890 568719 DEBUG [org.jboss.seam.jsf.SeamVariableResolver] resolving name: controller
                      15:54:49,890 568719 DEBUG [org.jboss.seam.contexts.Contexts] found in session context: controller
                      15:54:49,890 568719 DEBUG [org.jboss.seam.jsf.SeamVariableResolver] resolved name to Seam component
                      15:54:49,890 568719 DEBUG [org.jboss.seam.intercept.RootInterceptor] intercepted: controller.getFolderName
                      15:54:49,890 568719 DEBUG [org.jboss.seam.core.Events] Processing event:org.jboss.seam.preSetVariable.org.jboss.seam.outermostExceptionInterceptor
                      15:54:49,890 568719 DEBUG [org.jboss.seam.core.Events] Processing event:org.jboss.seam.postSetVariable.org.jboss.seam.outermostExceptionInterceptor
                      15:54:49,890 568719 DEBUG [org.jboss.seam.core.Events] Processing event:org.jboss.seam.preSetVariable.controller
                      15:54:49,890 568719 DEBUG [org.jboss.seam.core.Events] Processing event:org.jboss.seam.postSetVariable.controller
                      15:54:49,890 568719 DEBUG [org.jboss.seam.interceptors.BijectionInterceptor] injecting dependencies of: controller
                      15:54:49,890 568719 DEBUG [org.jboss.seam.Component] trying to inject with hierarchical context search: docstore
                      15:54:49,890 568719 DEBUG [org.jboss.seam.contexts.Contexts] found in session context: docstore
                      15:54:49,890 568719 DEBUG [org.jboss.seam.Component] trying to inject with hierarchical context search: documentId


                      can that be a clue to my problem? please give me some suggestion

                      Thanx and Regards,
                      -haric-


                      Note : the log is just partial log, because the whole log is very large :)