commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vincent Massol" <vmas...@pivolis.com>
Subject [Jelly] invokeBody with nested tags?
Date Sun, 02 Nov 2003 14:21:59 GMT
Hi,

I'd like to create a dynamic tag which can be used with nested tags.
Here's what I'd like to write:
 
  <define:taglib uri="cactus">
    <define:tag name="cactus">
      <cactus [...]>
        [...]
        <define:invokeBody/>
      </cactus>
    </define:tag>
  </define:taglib>

Then, it would be used like this:

  <cactus:cactus>
    <ant:batchtest>
      <ant:fileset dir="${cactus.src.dir}"
        includes="${cactus.src.includes}"
        excludes="${cactus.src.excludes}"/>
    </ant:batchtest>
  </cactus:cactus>

I would like this to be equivalent to a call to:

  <cactus [...]>
    [...]
    <ant:batchtest>
      <ant:fileset dir="${cactus.src.dir}"
        includes="${cactus.src.includes}"
        excludes="${cactus.src.excludes}"/>
    </ant:batchtest>
  </cactus>

Is that possible? I've tried it and it seems the <ant:batchest>[...]
part is simply ignored.

Does invokeBody only works with text? Can it work with nested tags too?
How can I achieve the above?

Thanks a lot
-Vincent


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


Mime
View raw message