Creating Pages with unique PageMaps
- by Michael Krauklis
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?