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 2006/10/27 22:13:22 UTC

svn commit: r468518 - /myfaces/tomahawk/trunk/sandbox/core/src/main/java/org/apache/myfaces/custom/conversation/UIEnsureConversation.java

Author: imario
Date: Fri Oct 27 13:13:21 2006
New Revision: 468518

URL: http://svn.apache.org/viewvc?view=rev&rev=468518
Log:
hack to work together with the RedirectTrackerManager, need to figure out a better way

Modified:
    myfaces/tomahawk/trunk/sandbox/core/src/main/java/org/apache/myfaces/custom/conversation/UIEnsureConversation.java

Modified: myfaces/tomahawk/trunk/sandbox/core/src/main/java/org/apache/myfaces/custom/conversation/UIEnsureConversation.java
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/sandbox/core/src/main/java/org/apache/myfaces/custom/conversation/UIEnsureConversation.java?view=diff&rev=468518&r1=468517&r2=468518
==============================================================================
--- myfaces/tomahawk/trunk/sandbox/core/src/main/java/org/apache/myfaces/custom/conversation/UIEnsureConversation.java (original)
+++ myfaces/tomahawk/trunk/sandbox/core/src/main/java/org/apache/myfaces/custom/conversation/UIEnsureConversation.java Fri Oct 27 13:13:21 2006
@@ -15,6 +15,8 @@
  */
 package org.apache.myfaces.custom.conversation;
 
+import org.apache.myfaces.custom.redirectTracker.RedirectTrackerManager;
+
 import javax.faces.context.FacesContext;
 import javax.faces.el.ValueBinding;
 import java.io.IOException;
@@ -84,6 +86,14 @@
 			String actionUrl = context.getApplication().getViewHandler().getActionURL(
 						context, getRedirectTo());
 			String encodedActionUrl = context.getExternalContext().encodeActionURL(actionUrl);
+
+			// XXX: figure out a way to avoid this ==>
+			RedirectTrackerManager manager = RedirectTrackerManager.getInstance(context);
+			if (manager != null)
+			{
+				encodedActionUrl = manager.trackRedirect(context, encodedActionUrl);
+			}
+			// XXX: figure out a way to avoid this <==
 
 			context.getExternalContext().redirect(encodedActionUrl);