Author: lektran
Date: Tue Mar 23 00:47:46 2010
New Revision: 926417

URL: http://svn.apache.org/viewvc?rev=926417&view=rev
Log:
Add the current overrideViewUri to the request attributes if present so that 
events can access the additional information if necessary.

Modified:
    
ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/control/RequestHandler.java

Modified: 
ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/control/RequestHandler.java
URL: 
http://svn.apache.org/viewvc/ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/control/RequestHandler.java?rev=926417&r1=926416&r2=926417&view=diff
==============================================================================
--- 
ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/control/RequestHandler.java 
(original)
+++ 
ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/control/RequestHandler.java 
Tue Mar 23 00:47:46 2010
@@ -159,6 +159,11 @@ public class RequestHandler {
             } else {
                 overrideViewUri = RequestHandler.getOverrideViewUri(chain);
             }
+            if (overrideViewUri != null) {
+                // put this in a request attribute early in case an event 
needs to access it
+                // not using _POST_CHAIN_VIEW_ because it shouldn't be set 
unless the event execution is successful
+                request.setAttribute("_CURRENT_CHAIN_VIEW_", overrideViewUri);
+            }
             if (Debug.infoOn()) Debug.logInfo("[RequestHandler]: Chain in 
place: requestUri=" + chainRequestUri + " overrideViewUri=" + overrideViewUri + 
" sessionId=" + UtilHttp.getSessionId(request), module);
         } else {
             // Check if X509 is required and we are not secure; throw exception


Reply via email to