cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From anto...@apache.org
Subject svn commit: r381902 - in /cocoon: branches/BRANCH_2_1_X/status.xml trunk/cocoon-ajax/cocoon-ajax-impl/src/main/java/org/apache/cocoon/ajax/BrowserUpdateTransformer.java
Date Wed, 01 Mar 2006 04:43:42 GMT
Author: antonio
Date: Tue Feb 28 20:43:42 2006
New Revision: 381902

URL: http://svn.apache.org/viewcvs?rev=381902&view=rev
Log:
<action dev="AG" type="fix" fixes-bug="COCOON-1786" due-to="Eric Meyer" due-to-email="eric.meyer@quoininc.com">
       Ajax block: BrowserUpdateTransformer can get into invalid state - must override recycle()
    </action>

Modified:
    cocoon/branches/BRANCH_2_1_X/status.xml
    cocoon/trunk/cocoon-ajax/cocoon-ajax-impl/src/main/java/org/apache/cocoon/ajax/BrowserUpdateTransformer.java

Modified: cocoon/branches/BRANCH_2_1_X/status.xml
URL: http://svn.apache.org/viewcvs/cocoon/branches/BRANCH_2_1_X/status.xml?rev=381902&r1=381901&r2=381902&view=diff
==============================================================================
--- cocoon/branches/BRANCH_2_1_X/status.xml (original)
+++ cocoon/branches/BRANCH_2_1_X/status.xml Tue Feb 28 20:43:42 2006
@@ -180,6 +180,9 @@
   <release version="@version@" date="@date@">
 -->
   <release version="2.1.9" date="TBD">
+    <action dev="AG" type="fix" fixes-bug="COCOON-1786" due-to="Eric Meyer" due-to-email="eric.meyer@quoininc.com">
+       Ajax block: BrowserUpdateTransformer can get into invalid state - must override recycle()
+    </action>
     <action dev="JBQ" type="fix" fixes-bug="COCOON-1279">
       Fix caching-point pipelines.  Remove the undocumented smart-caching parameter.
     </action>

Modified: cocoon/trunk/cocoon-ajax/cocoon-ajax-impl/src/main/java/org/apache/cocoon/ajax/BrowserUpdateTransformer.java
URL: http://svn.apache.org/viewcvs/cocoon/trunk/cocoon-ajax/cocoon-ajax-impl/src/main/java/org/apache/cocoon/ajax/BrowserUpdateTransformer.java?rev=381902&r1=381901&r2=381902&view=diff
==============================================================================
--- cocoon/trunk/cocoon-ajax/cocoon-ajax-impl/src/main/java/org/apache/cocoon/ajax/BrowserUpdateTransformer.java
(original)
+++ cocoon/trunk/cocoon-ajax/cocoon-ajax-impl/src/main/java/org/apache/cocoon/ajax/BrowserUpdateTransformer.java
Tue Feb 28 20:43:42 2006
@@ -39,7 +39,6 @@
 public class BrowserUpdateTransformer extends AbstractTransformer {
     
     public static final String AJAXMODE_PARAM = "cocoon-ajax";
-    
     public static final String BU_NSURI = "http://apache.org/cocoon/browser-update/1.0";
     
     private boolean ajaxRequest = false;
@@ -56,7 +55,7 @@
         Request request = ObjectModelHelper.getRequest(objectModel);
         this.ajaxRequest = request.getParameter(AJAXMODE_PARAM) != null;
     }
-    
+
     public void setDocumentLocator(Locator locator) {
         super.setDocumentLocator(locator);
         this.locator = locator;
@@ -176,5 +175,12 @@
             super.endPrefixMapping("bu");
         }
         super.endDocument();
+    }
+
+    public void recycle() {
+        super.recycle();
+        this.replaceDepth = 0;
+        this.inUpdateTag = false;
+        this.updateTagId = null;
     }
 }



Mime
View raw message