UserDataDictionary doesn't implement Map because the events are fired from the Component, not the dictionary itself (via ComponentDataListener).
I'll look into the exception. Thanks. G On Feb 12, 2010, at 4:24 PM, Robert Piotrowski wrote: > I there a quick way to remove all items in Component.UserDataDictionary in > one step? > > If I iterate with the iterator and use remove(), I get a concurrency > exception. > > My workaround right now is by interating over the dictionary to get all keys > into a vector and then looping thru the vector to remove elements by keyname > back on the dictionary. But it's nasty. > > Maybe it should implement the Map interface too/instead? > > Or is there a way to set it to an empty dictionary? I can't see to get that > to work. > > > > > Thanks, > > Bob
