Creating Pages with unique PageMaps
Posted
by Michael Krauklis
on Stack Overflow
See other posts from Stack Overflow
or by Michael Krauklis
Published on 2010-03-10T14:09:27Z
Indexed on
2010/03/11
5:33 UTC
Read the original article
Hit count: 163
I have a wicket Application that has long lived Pages. I would like each instance of this Page to be created with a unique PageMap for reasons I won't get into here, but when I try to specify a PageMap on the constructor of my Page I end up getting OOM and StackOverflow errors. Here is the code:
public <CTOR>() {
super(Session.get().newPageMap("" + System.currentTimeMillis()));
...
I'm using a custom BookmarkablePageLink (custom in that it does not pass on the current PageMap name to the new Page) to effectively abandon the old Page/PageMap and create a new one with a new PageMap. The errors seem to be coming from page serialization after only two or three pages have been created.
Can anyone find issue with this approach?
© Stack Overflow or respective owner