I use Vectors with no problems.  ArrayLists are not synchronized and Vectors 
are, so Kumar may not be able to just switch Collections (without having to 
synchronize the ArrayLists himself).  My Vectors contain objects rather than 
Strings, which works essentially the same way, but uses the following pattern:

        <collection name="CollectionsName" field="collectionsName" 
iter-method="getCollectionsNameIterator" >
                <structure name="ObjectName" type="some.path.to.SomeObject">
                        <value name="SomeName" field="someStringVariableName" />
                </structure> 
        </collection> 

I hope that is at all useful.

****************************************
Paul Poole
J2EE Developer
Business Process Automation
Conseco
Carmel, IN 46032
317-817-4032
****************************************


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


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=ick
_______________________________________________
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