commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jstrac...@apache.org
Subject cvs commit: jakarta-commons-sandbox/jelly/src/java/org/apache/commons/jelly/tags/ant OtherAntTag.java
Date Tue, 25 Jun 2002 16:21:54 GMT
jstrachan    2002/06/25 09:21:54

  Modified:    jelly/src/java/org/apache/commons/jelly/tags/ant
                        OtherAntTag.java
  Log:
  patched the use of getParent() so that this tag might be wrapped in another tag, such as
a loop
  
  Revision  Changes    Path
  1.2       +1 -1      jakarta-commons-sandbox/jelly/src/java/org/apache/commons/jelly/tags/ant/OtherAntTag.java
  
  Index: OtherAntTag.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons-sandbox/jelly/src/java/org/apache/commons/jelly/tags/ant/OtherAntTag.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- OtherAntTag.java	18 Jun 2002 18:36:43 -0000	1.1
  +++ OtherAntTag.java	25 Jun 2002 16:21:54 -0000	1.2
  @@ -71,7 +71,7 @@
               this.task.perform(); 
           } else {
               getBody().run( context, output );
  -            AntTagSupport parent = (AntTagSupport) getParent();
  +            AntTagSupport parent = (AntTagSupport) findAncestorWithClass(AntTagSupport.class);
               
               Object parentObj =  parent.getObject();
               
  
  
  

--
To unsubscribe, e-mail:   <mailto:commons-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:commons-dev-help@jakarta.apache.org>


Mime
View raw message