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

Gavin King gavin.king at jboss.com
Tue Feb 13 01:09:14 EST 2007


  User: gavin   
  Date: 07/02/13 01:09:13

  Modified:    src/main/org/jboss/seam/interceptors 
                        ConversationalInterceptor.java
  Log:
  noConversation event
  
  Revision  Changes    Path
  1.17      +6 -1      jboss-seam/src/main/org/jboss/seam/interceptors/ConversationalInterceptor.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: ConversationalInterceptor.java
  ===================================================================
  RCS file: /cvsroot/jboss/jboss-seam/src/main/org/jboss/seam/interceptors/ConversationalInterceptor.java,v
  retrieving revision 1.16
  retrieving revision 1.17
  diff -u -b -r1.16 -r1.17
  --- ConversationalInterceptor.java	13 Feb 2007 06:02:53 -0000	1.16
  +++ ConversationalInterceptor.java	13 Feb 2007 06:09:12 -0000	1.17
  @@ -1,4 +1,4 @@
  -//$Id: ConversationalInterceptor.java,v 1.16 2007/02/13 06:02:53 gavin Exp $
  +//$Id: ConversationalInterceptor.java,v 1.17 2007/02/13 06:09:12 gavin Exp $
   package org.jboss.seam.interceptors;
   
   import java.lang.reflect.Method;
  @@ -18,6 +18,7 @@
   import org.jboss.seam.annotations.Interceptor;
   import org.jboss.seam.annotations.StartTask;
   import org.jboss.seam.contexts.Lifecycle;
  +import org.jboss.seam.core.Events;
   import org.jboss.seam.core.FacesMessages;
   import org.jboss.seam.core.Manager;
   import org.jboss.seam.intercept.InvocationContext;
  @@ -50,6 +51,7 @@
            
            if ( "".equals(outcome) )
            {
  +            Events.instance().raiseEvent("org.jboss.seam.noConversation");
               throw new NoConversationException( "no long-running conversation for @Conversational bean: " + getComponent().getName() );
            }
            else
  @@ -62,6 +64,9 @@
                  {
                     log.debug( "no long-running conversation for @Conversational bean: " + getComponent().getName() );
                  }
  +               
  +               Events.instance().raiseEvent("org.jboss.seam.noConversation");
  +               
                  FacesMessages.instance().addFromResourceBundleOrDefault( 
                        FacesMessage.SEVERITY_WARN, 
                        "org.jboss.seam.NoConversation", 
  
  
  



More information about the jboss-cvs-commits mailing list