4 Replies Latest reply on Apr 7, 2009 11:46 PM by Jason Porter

    Built in navigation event

    Jason Porter Master

      Are there any build in events that I can listen to for when a page navigation occurs?

        • 1. Re: Built in navigation event
          Arbi Sookazian Master

          according to Seam in Action, yes:


          Here’s a list of some of the events that
          Seam raises:
          Seam container initialized
          Context variable assignment (added, removed)
          Component life-cycle events (created, destroyed)
          Scope events (created, destroyed)
          Authentication events
          Transaction events (before complete, commit, rollback)
          Exception events (handled, not handled)
          Conversation, page flow, business process, and task boundaries
          JSF phase transitions (before, after)
          JSF validation failed
          User preference change (theme, time zone, locale)



          I don't have any specific info for your request (yet)...

          • 2. Re: Built in navigation event
            Arbi Sookazian Master

            This should help you more (from Seam ref doc):



            6.10. Contextual events
            
            org.jboss.seam.beginPageflow — called when a pageflow begins
            org.jboss.seam.beginPageflow.<name> — called when the pageflow <name> begins
            org.jboss.seam.endPageflow — called when a pageflow ends
            org.jboss.seam.endPageflow.<name> — called when the pageflow <name> ends




            Although I'm not sure if it's necessarily true that if you're using pages.xml for page navigation, you're also using pageflow... ???

            • 3. Re: Built in navigation event
              Jason Porter Master

              No, not using pageflow (bpm) just regular page.xml files

              • 4. Re: Built in navigation event
                Jason Porter Master

                There is not one specifically for what I want, but I could probably do it by listening to the beforePhase/afterPhase event.  I'm looking at doing this for breadcrumbs both inside and outside of conversations so I don't think the conversationSwitcher will work because of those temporary conversations, but if it will, someone please let me know.