[jboss-cvs] jboss-seam/src/debug/org/jboss/seam/debug/jsf ...

Gavin King gavin.king at jboss.com
Thu Jul 12 07:18:31 EDT 2007


  User: gavin   
  Date: 07/07/12 07:18:31

  Modified:    src/debug/org/jboss/seam/debug/jsf 
                        SeamDebugPhaseListener.java
  Log:
  dont redirect when you try to hit debug page
  
  Revision  Changes    Path
  1.8       +2 -4      jboss-seam/src/debug/org/jboss/seam/debug/jsf/SeamDebugPhaseListener.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: SeamDebugPhaseListener.java
  ===================================================================
  RCS file: /cvsroot/jboss/jboss-seam/src/debug/org/jboss/seam/debug/jsf/SeamDebugPhaseListener.java,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -b -r1.7 -r1.8
  --- SeamDebugPhaseListener.java	20 Jun 2007 08:23:16 -0000	1.7
  +++ SeamDebugPhaseListener.java	12 Jul 2007 11:18:31 -0000	1.8
  @@ -12,7 +12,6 @@
   import javax.servlet.http.HttpServletResponse;
   
   import org.jboss.seam.contexts.FacesLifecycle;
  -import org.jboss.seam.core.Init;
   import org.jboss.seam.navigation.Pages;
   
   import com.sun.facelets.Facelet;
  @@ -34,12 +33,11 @@
      {
         FacesLifecycle.setPhaseId( event.getPhaseId() ); //since this gets called before SeamPhaseListener!
         
  -      FacesContext facesContext = FacesContext.getCurrentInstance();
  -      String viewId = Pages.getViewId(facesContext);
  -      if ( viewId!=null && viewId.startsWith("/debug.") && Init.instance().isDebug() )
  +      if ( Pages.isDebugPage() )
         {
            try
            {
  +            FacesContext facesContext = FacesContext.getCurrentInstance();
               URL url = SeamDebugPhaseListener.class.getClassLoader().getResource("META-INF/debug.xhtml");
               Facelet f = new DefaultFaceletFactory( new SAXCompiler(), new DefaultResourceResolver() ).getFacelet(url);
               UIViewRoot root = facesContext.getViewRoot();
  
  
  



More information about the jboss-cvs-commits mailing list