I figured it out: use introspector.setAttributesForPrimitives(true);
and in the betwixt file: <element name="person"> <element name="name" property="name" /> <addDefaults/> </element> I wish the documentation was clearer. It took me some time to figure this out. Perhaps add this to the FAQ? Dino --- Dino Valente <[EMAIL PROTECTED]> wrote: > <person SSN="xxxx"> > <name>Me</> > </person> > > Is is possible to create a person bean what will > store > both the SSN and name attributes? > > For the life of me I can't find anywhere an example > to > do this in the distribution. I know I can use > introspector.setAttributesForPrimitives(false); > > Then name is saved as an attribute but ignores SSN. > > If I do > introspector.setAttributesForPrimitives(true); > then Name would need to be defined as a class. In > this > instance, how can I store the text value? > > Dino > > > > > > > __________________________________ > Do you Yahoo!? > Friends. Fun. Try the all-new Yahoo! Messenger. > http://messenger.yahoo.com/ > __________________________________ Do you Yahoo!? Friends. Fun. Try the all-new Yahoo! Messenger. http://messenger.yahoo.com/ --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
