It's funny - I find myself having to re-solve that same problem every
time I do a jibx binding, so I put a link up on the jibx wiki addressing
this:

http://www.sosnoski.com/jibx-wiki/space/string-collections

it looks like you were almost there; you need to add "style='element'"
to the value element.

Also, you might want to go with ArrayList instead of Vector, since jibx
documents full support for ArrayList (and ArrayList = Vector anyway).

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of babloosony
Sent: Monday, February 28, 2005 7:40 AM
To: [email protected]
Subject: [jibx-users] Newbie doubts on Collections mapping in
binding.xml - pl. hlp.

Hi All,

I have one doubt on writing jibx binding.xml. I have a class that has
a vector and the vector holds only objects of java.lang.String type.

Now, is the below binding correct for this collection :

<collection field="dummyVector">
<value  name="vectorElement" />
</collection>

since I always get the below exception:
org.jibx.runtime.JiBXException: Collection item of type
java.lang.String has no binding defined



Thanks & Regards,
Kumar.


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
jibx-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jibx-users


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_ide95&alloc_id396&op=click
_______________________________________________
jibx-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jibx-users

Reply via email to