Skip to content

Commit

Permalink
<action dev="AG" type="fix" fixes-bug="COCOON-1786" due-to="Eric Meye…
Browse files Browse the repository at this point in the history
…r" due-to-email="eric.meyer@quoininc.com">

       Ajax block: BrowserUpdateTransformer can get into invalid state - must override recycle()
    </action>

git-svn-id: https://svn.apache.org/repos/asf/cocoon/trunk/cocoon-ajax/cocoon-ajax-impl@381902 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
Antonio Gallardo Rivera committed Mar 1, 2006
1 parent 23ac401 commit 8e05cdc
Showing 1 changed file with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -56,7 +55,7 @@ public void setup(SourceResolver resolver, Map objectModel, String src, Paramete
Request request = ObjectModelHelper.getRequest(objectModel);
this.ajaxRequest = request.getParameter(AJAXMODE_PARAM) != null;
}

public void setDocumentLocator(Locator locator) {
super.setDocumentLocator(locator);
this.locator = locator;
Expand Down Expand Up @@ -177,4 +176,11 @@ public void endDocument() throws SAXException {
}
super.endDocument();
}

public void recycle() {
super.recycle();
this.replaceDepth = 0;
this.inUpdateTag = false;
this.updateTagId = null;
}
}

0 comments on commit 8e05cdc

Please sign in to comment.