You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by jv...@apache.org on 2002/09/13 02:16:35 UTC

cvs commit: jakarta-commons-sandbox/jelly/src/test/org/apache/commons/jelly/define jellyBeanSample.jelly

jvanzyl     2002/09/12 17:16:35

  Modified:    jelly/src/test/org/apache/commons/jelly/define
                        jellyBeanSample.jelly
  Log:
  o Adding a test case for the patch submitted by Guido Schmutz. Patch
    has been applied. Thanks.
  
  Revision  Changes    Path
  1.5       +23 -1     jakarta-commons-sandbox/jelly/src/test/org/apache/commons/jelly/define/jellyBeanSample.jelly
  
  Index: jellyBeanSample.jelly
  ===================================================================
  RCS file: /home/cvs/jakarta-commons-sandbox/jelly/src/test/org/apache/commons/jelly/define/jellyBeanSample.jelly,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- jellyBeanSample.jelly	19 Aug 2002 21:42:03 -0000	1.4
  +++ jellyBeanSample.jelly	13 Sep 2002 00:16:35 -0000	1.5
  @@ -17,7 +17,25 @@
       <define:jellybean name="foo" className="org.apache.commons.jelly.define.MyRunnable">
         <define:attribute name="y" defaultValue="wine"/>
       </define:jellybean>
  -      
  +    
  +    <!-- 
  +      This was added to demonstrate a ClassCastException when a
  +      dynamic tag is created that uses a dynamically jelly bean and
  +      called more than once. You should be able to call the dynamically
  +      created tag n times without problem now.
  +    -->
  +    
  +    <define:tag name="bar">
  +      <my:foo x="2" y="cheese">
  +        <fileset dir=".">
  +          <include name="*.xml"/>
  +        </fileset>
  +        <fileset dir="src/java">
  +          <include name="*.java"/>
  +        </fileset>
  +      </my:foo>
  +    </define:tag>
  +
     </define:taglib>
   
     <log:info>Now lets invoke the new Jelly bean tag</log:info>
  @@ -38,6 +56,10 @@
         <include name="*.xml"/>
       </fileset>
     </my:foo>
  +  
  +  <!-- You should be able to run dynamic tags n times without ClassCastExceptions -->
  +  <my:bar/>
  +  <my:bar/>
     
   </testcase>
     		
  
  
  

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