You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by bu...@apache.org on 2004/10/06 22:09:50 UTC

DO NOT REPLY [Bug 31500] - Problem in Reading the Bean containing another bean

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=31500>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=31500

Problem in Reading the Bean containing another bean

rdonkin@apache.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED



------- Additional Comments From rdonkin@apache.org  2004-10-06 20:09 -------
By default, Betwixt assumes that collectives should be wrapped in a containing element. For example,

<persons>
   <persons>...</person>
</persons>

So, you need to configure Betwixt so that this behaviour is switched off with something like:

beanReader.getXMLIntrospector().getConfiguration().setWrapCollectionsInElement(false);

There is something about this in http://jakarta.apache.org/commons/betwixt/guide/binding.html but 
it's a little thin. A documentation patch would be gratefully received or add a FAQ to the wiki.


BTW a good tip when you're having trouble with a reading configuration is to write out what you expect 
and see what the differences are.

Cheers

Robert

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