Thanks, that did the trick!  :)

-Stefan



> -----Original Message-----
> From: Dion Gillard [mailto:[EMAIL PROTECTED] 
> Sent: Friday, August 13, 2004 2:01 AM
> To: Jakarta Commons Users List
> Subject: Re: [Jelly] Define Beans
> 
> 
> On Fri, 13 Aug 2004 00:39:35 +0200, Stefan Kleineikenscheidt
> <[EMAIL PROTECTED]> wrote:
> > 
> > Hello,
> > 
> > I would like to create a bean, which has a complex 
> property.  My Jelly
> > script looks something like that, but it doesn't work:
> > 
> > ---%<------------------------------------
> > 
> >   <define:taglib uri="mytaglib">
> >     <define:jellybean
> >       name="beanA"
> >       className="package.name.BeanA"
> >       method="execute" />
> > 
> >     <define:bean
> >       name="beanB"
> >       className="package.name.BeanB" />
> >   </define:taglib>
> > 
> >   <goal name="hello">
> > 
> >     <mytaglib:beanB
> >         var="mybeanb" />
> > 
> >     <mytaglib:beanA
> >         var="myConverter"
> >         propertyOfTypeBeanB="mybeanb" />  **)
> >   ....
> > 
> > ---%<------------------------------------
> > 
> > **) Jelly tries to set 'mybeanb' as String to 'propertyOfTypeBeanB',
> > which results in an IllegalArgumentException.
> 
> And so it should.
> 
> Defining a bean as part of a taglib means that it will call the
> execute method when the tag is executing.
> 
> > Is there a way to do something like that with Jelly?
> If you'd like to create a bean, and store it in a property, the
> useBean tag 
> http://jakarta.apache.org/commons/jelly/tags.html#core:useBean

is more appropriate.

-- 
http://www.multitask.com.au/people/dion/

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to