commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject RE: [jelly] parent and child tags
Date Mon, 08 Mar 2004 22:50:28 GMT
"Volkmann, Mark" <> wrote on 09/03/2004 
06:28:29 AM:

> Yes, that would certainly work.  I'm just thinking that if I have an 
> with 20 different child elements, I don't want to create a class for 
each of
> the child elements and have to tell each one to pass its data up to the
> parent.  I guess what I really want is a way to treat child elements 
> attributes are treated ... set methods are automatically called.  For
> example, I want
> <foo>
>   <bar>7</bar>
> </foo>
> to result in creation of a foo object and the call foo.setBar(7).

The Ant tag library does something very similar to this, but using Ant's 
method naming conventions.
dIon Gillard, Multitask Consulting

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message