HashMap.Entry not serializable?

2009-07-18 Thread Martin Makundi
Hi! I am a bit onfused.. I have new ListView("id", new LinkedList(hashMap.entrySet())) and Wicket gives: org.apache.wicket.util.io.SerializableChecker$WicketNotSerializableException: Unable to serialize class: java.util.HashMap$Entry This does not make sense, I would expect hashmap entries to be

RE: HashMap.Entry not serializable?

2009-07-18 Thread Russell Simpkins
hashMap.entrySet returns a Set If you look at the javadocs, Set does not extend Serializable: public interface Setextends Collection All Superinterfaces:Collection, Iterable > Date: Sat, 18 Jul 2009 13:06:32 +0300 > Subject: HashMap.Ent

Re: HashMap.Entry not serializable?

2009-07-18 Thread Johan Compagner
nope you cant serialize entries. hashmap do there own custom serialization (just key/value) and they dont serialize the internal structure to that data (the entries) Thats why Entry is not serializeable johan On Sat, Jul 18, 2009 at 12:06, Martin Makundi < martin.maku...@koodaripalvelut.com> wro

Re: HashMap.Entry not serializable?

2009-07-18 Thread vineet semwal
keys,values are serializable but entry itself isn't . quick solution is to use LDM. regards, Vineet Semwal On Sat, Jul 18, 2009 at 3:36 PM, Martin Makundi < martin.maku...@koodaripalvelut.com> wrote: > Hi! > > I am a bit onfused.. I have new ListView("id", new > LinkedList(hashMap.entrySet())) a

Re: HashMap.Entry not serializable?

2009-07-18 Thread vineet semwal
-- > > Date: Sat, 18 Jul 2009 13:06:32 +0300 > > Subject: HashMap.Entry not serializable? > > From: martin.maku...@koodaripalvelut.com > > To: users@wicket.apache.org > > > > Hi! > > > > I am a bit onfu

RE: HashMap.Entry not serializable?

2009-07-18 Thread Russell Simpkins
. > Date: Sat, 18 Jul 2009 18:11:17 +0530 > Subject: Re: HashMap.Entry not serializable? > From: vineetsemwal1...@gmail.com > To: users@wicket.apache.org > > Russell, > Set,List,Map do not implement Serializable but their implementations do. > In

Re: HashMap.Entry not serializable?

2009-07-18 Thread Martin Makundi
Veery strange... what is LDM? ** Martin 2009/7/18 vineet semwal : > keys,values are serializable but entry itself isn't . > quick solution is to use LDM. > > regards, > Vineet Semwal > > On Sat, Jul 18, 2009 at 3:36 PM, Martin Makundi < > martin.maku...@koodaripalvelut.com> wrote: > >> Hi! >> >>

Re: HashMap.Entry not serializable?

2009-07-18 Thread vineet semwal
it, hence the error. All the calling > method knows is that you passed a Set and Set does not extend Serializable. > > > > Date: Sat, 18 Jul 2009 18:11:17 +0530 > > Subject: Re: HashMap.Entry not serializable? > > From: vin

Re: HashMap.Entry not serializable?

2009-07-18 Thread vineet semwal
loadable detachable model On Sat, Jul 18, 2009 at 7:24 PM, Martin Makundi < martin.maku...@koodaripalvelut.com> wrote: > Veery strange... what is LDM? > > ** > Martin > > 2009/7/18 vineet semwal : > > keys,values are serializable but entry itself isn't . > > quick solution is to use LDM. > > > >