commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vincent Massol" <vmas...@pivolis.com>
Subject RE: [Jelly] invokeBody with nested tags?
Date Sat, 08 Nov 2003 15:21:00 GMT
Thanks Peter,

Here is an example (I've created
http://jira.codehaus.org/secure/ViewIssue.jspa?key=JELLY-95):

<project
  default="mytest"
  xmlns:j="jelly:core"
  xmlns:maven="jelly:maven"
  xmlns:ant="jelly:ant"
  xmlns:define="jelly:define"
  xmlns:mytaglib="mytaglib">

  <define:taglib uri="mytaglib">
    <define:tag name="mytag">
      <ant:condition property="ok">
        <define:invokeBody/>
      </ant:condition>
    </define:tag>
  </define:taglib>

  <goal name="mytest">

    <mytaglib:mytag>
      <ant:equals arg1="arg" arg2="arg"/>
    </mytaglib:mytag>

    Result = ${ok}
    
  </goal>

  <goal name="mytest2">

    <ant:condition property="ok2">
      <ant:equals arg1="arg" arg2="arg"/>
    </ant:condition>

    Result = ${ok2}
    
  </goal>
  
</project>

Calling mytest fails whereas mytest2 works.

Thanks
-Vincent

> -----Original Message-----
> From: peter royal [mailto:proyal@apache.org]
> Sent: 03 November 2003 03:28
> To: Jakarta Commons Developers List
> Subject: Re: [Jelly] invokeBody with nested tags?
> 
> On Nov 2, 2003, at 9:21 AM, Vincent Massol wrote:
> > Does invokeBody only works with text? Can it work with nested tags
too?
> > How can I achieve the above?
> 
>  From what I know, it *should* work. invokeBody invokes nested tags
when
> called from tags defined in java, i don't see why it should be
> different for jelly-based tags. if you work up a testcase and stick it
> in jira, that'll increase chances of other eyes looking at it :)
> -pete
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: commons-dev-help@jakarta.apache.org



---------------------------------------------------------------------
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