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

Gavin King gavin.king at jboss.com
Thu Mar 8 17:32:02 EST 2007


  User: gavin   
  Date: 07/03/08 17:32:02

  Modified:    src/main/org/jboss/seam/contexts  Contexts.java
  Log:
  better integration with other phase listeners
  
  Revision  Changes    Path
  1.48      +4 -3      jboss-seam/src/main/org/jboss/seam/contexts/Contexts.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: Contexts.java
  ===================================================================
  RCS file: /cvsroot/jboss/jboss-seam/src/main/org/jboss/seam/contexts/Contexts.java,v
  retrieving revision 1.47
  retrieving revision 1.48
  diff -u -b -r1.47 -r1.48
  --- Contexts.java	4 Feb 2007 01:13:18 -0000	1.47
  +++ Contexts.java	8 Mar 2007 22:32:02 -0000	1.48
  @@ -16,9 +16,10 @@
    * 
    * @author Gavin King
    * @author <a href="mailto:theute at jboss.org">Thomas Heute</a>
  - * @version $Revision: 1.47 $
  + * @version $Revision: 1.48 $
    */
  -public class Contexts {
  +public class Contexts 
  +{
   
      private static final LogProvider log = Logging.getLogProvider(Contexts.class);
   
  @@ -155,7 +156,7 @@
            }
         }
         
  -      if (isPageContextActive())
  +      if ( isPageContextActive() && Lifecycle.getPhaseId()!=null ) // phase id is null when third-party phase listeners try to do stuff
         {
            Object result = getPageContext().get(name);
            if (result!=null)
  
  
  



More information about the jboss-cvs-commits mailing list