You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by js...@apache.org on 2002/08/19 23:38:09 UTC

cvs commit: jakarta-commons-sandbox/jelly/src/java/org/apache/commons/jelly/impl TagScript.java

jstrachan    2002/08/19 14:38:09

  Modified:    jelly/src/java/org/apache/commons/jelly/impl TagScript.java
  Log:
  Patched minor bug that dynamic tags would often not be on the parent hierarchy
  
  Revision  Changes    Path
  1.19      +13 -5     jakarta-commons-sandbox/jelly/src/java/org/apache/commons/jelly/impl/TagScript.java
  
  Index: TagScript.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons-sandbox/jelly/src/java/org/apache/commons/jelly/impl/TagScript.java,v
  retrieving revision 1.18
  retrieving revision 1.19
  diff -u -r1.18 -r1.19
  --- TagScript.java	12 Aug 2002 19:11:46 -0000	1.18
  +++ TagScript.java	19 Aug 2002 21:38:09 -0000	1.19
  @@ -366,6 +366,14 @@
           tagHolder.set(null);
       }
       
  +    /** 
  +     * Allows the script to set the tag instance to be used, such as in a StaticTagScript
  +     * when a StaticTag is switched with a DynamicTag
  +     */
  +    protected void setTag(Tag tag) {
  +        tagHolder.set(tag);
  +    }
  +
       /**
        * Output the new namespace prefixes used for this element
        */    
  
  
  

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>