-----Original Message----- From: Christian Sell [mailto:[EMAIL PROTECTED]] Sent: Monday, January 20, 2003 12:13 PM To: Jakarta Commons Users List Subject: Re: [jelly] taglib implementation questions
Dominique Devienne wrote: > 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 would the String argument to the constructor be? [DD] How about the attribute value ;-) > 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 ok, so there we are - Ant does not require the createXXX() method, but makes it optional. Thats what I was referring to. [DD] Not really optional... You either provide a addXXX() or a createXXX, but if you provide neither, you don't get nested elements. - Christian -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
