3 Replies Latest reply on Jan 9, 2010 11:15 AM by amitev

    hooking in a recorder?

    deanhiller2000

      is there a place where i can hook into seam to make sure I record every request that comes in, mainly being the page the user is on(which may have changed if user hit back button) and the action method that is going to be called...even better would be the id of the button or something that was clicked.  This would be a start to help me reproduce bugs that i see that i can't seem to reproduce as the user is going down an atypical route somehow.


      later, I would probably like to add the selected items as well so I can completely reproduce what the customer is doing.


      Which java class can I look at in Seam for this?  The Navigation classes, Pages.java, etc.??/
      thanks,
      Dean

        • 1. Re: hooking in a recorder?
          amitev

          JSF phase listener could help.

          • 2. Re: hooking in a recorder?
            deanhiller2000

            I don't see anything in the PhaseEvent that I can use?  i know I can probably get the request object and get the page from that...thanks!!! but then how would How do I record the action method that was going to be called at the very first phase so if there are any exceptions I still know what the user did?

            • 3. Re: hooking in a recorder?
              amitev

              You could try to plug your own navigation handler in faces-config.xml that extends SeamNavigationHandler. Navigation handler has a method with the following signature:


              public void handleNavigation(FacesContext context, String fromAction, String outcome) 
              



              This will help you record the called action.