commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dominique Devienne <>
Subject RE: [jelly] taglib implementation questions
Date Mon, 20 Jan 2003 18:06:03 GMT
Ant does not use setMyAttr(SomeType) for nested elements, just for
attributes, and requires a SomeType(String) Ctor when an 'myattr' attribute
is found.

What you are referring to is addMyElem(MyElemClass) which does use the
default MyElemClass default Ctor when seeing a nested <myelem> element. Or
as James pointed out, use MyElemClass createMyElem(), to enable
polymorphism. --DD

-----Original Message-----
From: James Strachan [] 
Sent: Monday, January 20, 2003 11:57 AM
To: Jakarta Commons Users List
Subject: Re: [jelly] taglib implementation questions

From: "Christian Sell" <>
> BTW, the BeanTagLibrary seems to also require that objects implement
> createXX methods for nested elements. Why cant the object type simply be
> inferred from the argument of the setXX method, and the object be
> created by the default constructor? I think that is what Ant does.

AFAIK Ant uses similar kinds of createXX() methods.

View raw message