[jboss-cvs] jboss-seam/src/main/org/jboss/seam/exceptions ...

Gavin King gavin.king at jboss.com
Sat Feb 3 21:38:29 EST 2007


  User: gavin   
  Date: 07/02/03 21:38:29

  Modified:    src/main/org/jboss/seam/exceptions  DebugPageHandler.java
  Log:
  bring back debug page
  
  Revision  Changes    Path
  1.4       +2 -7      jboss-seam/src/main/org/jboss/seam/exceptions/DebugPageHandler.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: DebugPageHandler.java
  ===================================================================
  RCS file: /cvsroot/jboss/jboss-seam/src/main/org/jboss/seam/exceptions/DebugPageHandler.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -b -r1.3 -r1.4
  --- DebugPageHandler.java	4 Feb 2007 01:13:19 -0000	1.3
  +++ DebugPageHandler.java	4 Feb 2007 02:38:29 -0000	1.4
  @@ -3,9 +3,7 @@
    */
   package org.jboss.seam.exceptions;
   
  -import org.jboss.seam.contexts.Context;
   import org.jboss.seam.contexts.Contexts;
  -import org.jboss.seam.contexts.Lifecycle;
   import org.jboss.seam.core.Exceptions;
   import org.jboss.seam.core.Manager;
   
  @@ -16,17 +14,14 @@
      public void handle(Exception e) throws Exception
      {
         Exceptions.log.error("redirecting to debug page", e);
  -      Context conversationContext = Contexts.getConversationContext();
  -      conversationContext.set("org.jboss.seam.debug.lastException", e);
  -      conversationContext.set("org.jboss.seam.debug.phaseId", Lifecycle.getPhaseId().toString());
  +      Contexts.getConversationContext().set("org.jboss.seam.debug.lastException", e);
         org.jboss.seam.core.Redirect redirect = org.jboss.seam.core.Redirect.instance();
         redirect.setViewId("/debug.xhtml");
         Manager manager = Manager.instance();
         manager.beforeRedirect();
         redirect.setParameter( manager.getConversationIdParameter(), manager.getCurrentConversationId() );
         redirect.execute();
  -      conversationContext.flush();
  -      //(e);
  +      Contexts.getConversationContext().flush();
      }
   
      @Override
  
  
  



More information about the jboss-cvs-commits mailing list