remove the final keyword of the entry variable.
You shouldn't keep entry objects like that then it will become members and
an Map.Entry isn't serializeable
because the HashMap doesn't serialize those (they aren't meant to be)

johan


On 5/29/07, Sven Schliesing <[EMAIL PROTECTED]> wrote:

Hi,

I just ran into problems with a List view. The Model used for this is
actually a Map so I put in a entrySet() from the map in the ListView:

new ListView("list", new ArrayList<Map.Entry<IKey,
Integer>>(map.entrySet())) {
   public void populateItem(final ListItem listItem) {
     final Map.Entry<IKey, Integer> entry = (Map.Entry<IKey, Integer>)
listItem.getModelObject();
     ...
   }
};


Unfortunately I'm getting an error message that Map.Entry is not
serializable.

I'm sure this is a known problem with a known fix. Isn't it?

Thanks in advance!

Sven

PS: I'm relatively new to Wicket. So feel free to kick me to a faq I
missed that covers this issue.


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to