We found a bug today in the new TemplateLink code in on the 2.3 branch where the reference is not cleared out when rendering the link in a template. This result is that a call to setReference will be rendered in each subsequent call to $link. Here is a patch that fixes our problem. It may be more wise to add a removeReference() method on templateURI - if you would rather go that direction let me know and I will whip it together - just touches more code.
-Brian
Index: src/java/org/apache/turbine/services/pull/tools/TemplateLink.java
===================================================================
RCS file: /home/cvspublic/jakarta-turbine-2/src/java/org/apache/turbine/services/ pull/tools/TemplateLink.java,v
retrieving revision 1.8.2.1
diff -u -r1.8.2.1 TemplateLink.java
--- src/java/org/apache/turbine/services/pull/tools/TemplateLink.java 27 Feb 2004 05:59:18 -0000 1.8.2.1
+++ src/java/org/apache/turbine/services/pull/tools/TemplateLink.java 7 Apr 2004 18:49:29 -0000
@@ -487,6 +487,7 @@
// over with a fresh set of data every time.
templateURI.removePathInfo();
templateURI.removeQueryData();
+ templateURI.setReference("");
return output;
}
@@ -525,6 +526,7 @@
// over with a fresh set of data every time.
templateURI.removePathInfo();
templateURI.removeQueryData();
+ templateURI.setReference(""); return output;
}
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
