commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Stefan Kleineikenscheidt" <stefan.t...@kleineikenscheidt.de>
Subject [Jelly] Define Beans
Date Thu, 12 Aug 2004 22:39:35 GMT

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. 

Is there a way to do something like that with Jelly?

Thanks for any hint,
-Stefan




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


Mime
View raw message