You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by im...@apache.org on 2007/09/07 16:44:11 UTC

svn commit: r573599 - /myfaces/orchestra/trunk/core15/src/main/java/org/apache/myfaces/orchestra/viewController/PlainAnnotationsViewControllerManager.java

Author: imario
Date: Fri Sep  7 07:44:10 2007
New Revision: 573599

URL: http://svn.apache.org/viewvc?rev=573599&view=rev
Log:
use the ConversationMessager if a not running conversation has been detected

Modified:
    myfaces/orchestra/trunk/core15/src/main/java/org/apache/myfaces/orchestra/viewController/PlainAnnotationsViewControllerManager.java

Modified: myfaces/orchestra/trunk/core15/src/main/java/org/apache/myfaces/orchestra/viewController/PlainAnnotationsViewControllerManager.java
URL: http://svn.apache.org/viewvc/myfaces/orchestra/trunk/core15/src/main/java/org/apache/myfaces/orchestra/viewController/PlainAnnotationsViewControllerManager.java?rev=573599&r1=573598&r2=573599&view=diff
==============================================================================
--- myfaces/orchestra/trunk/core15/src/main/java/org/apache/myfaces/orchestra/viewController/PlainAnnotationsViewControllerManager.java (original)
+++ myfaces/orchestra/trunk/core15/src/main/java/org/apache/myfaces/orchestra/viewController/PlainAnnotationsViewControllerManager.java Fri Sep  7 07:44:10 2007
@@ -27,6 +27,7 @@
 import org.apache.myfaces.orchestra.frameworkAdapter.FrameworkAdapter;
 import org.apache.myfaces.orchestra.lib.OrchestraException;
 
+import javax.faces.context.FacesContext;
 import java.io.IOException;
 
 /**
@@ -112,6 +113,13 @@
 
 			if (!manager.hasConversation(conversationName))
 			{
+				if (manager.getMessager() != null)
+				{
+					manager.getMessager().setConversationNotActive(
+						FacesContext.getCurrentInstance(), // TODO: find a way to avoid the FacesContext here
+						conversationName);
+				}
+
 				if (!StringUtils.isEmpty(conversationRequire.redirect()))
 				{
 					try