Hi.
In Wicket 8 we used HttpSessionDataStore.
What is the right replacement for this in Wicket 9?
I tried overriding newPersistentStore() with InSessionPageStore but that
doesn’t seem to do the same as HttpSessionDataStore.
Manfred
Hi Manfred,
yes, you should use InSessionPageStore as a replacement.
>but that doesn’t seem to do the same as HttpSessionDataStore
Please be more specific, in what way does it differ? Pages are kept in
the session, there's not difference there.
Regards
Sven
On 01.04.21 15:27, Bergmann
OK, got it.
A sequence of this:
var store: IPageStore = new InSessionPageStore(1,
getFrameworkSettings().getSerializer())
store = new CachingPageStore(store, new InMemoryPageStore("ui", 5))
store = new RequestPageStore(store)
new PageManager(store)
seems to do it.
Thanks,
Manfred
> Am
Hi,
with that setup you lose back-button support - the serializer you're
passing to the InSessionPageStore is used only should the container
serialize the web session.
You should serialize *all* pages into the persistent store instead:
var store: IPageStore = new InSessionPageStore(1)
store