Re: Replacement for HttpSessionDataStore
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 = new SerializingPageStore(store) store = new CachingPageStore(store, new InMemoryPageStore("ui", 5)) store = new RequestPageStore(store) new PageManager(store) Hope this helps Sven On 01.04.21 16:44, Bergmann Manfred wrote: 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 01.04.2021 um 15:27 schrieb Bergmann Manfred : 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 - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Replacement for HttpSessionDataStore
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 01.04.2021 um 15:27 schrieb Bergmann Manfred : > > 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 - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Replacement for HttpSessionDataStore
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 Manfred wrote: 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 - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Replacement for HttpSessionDataStore
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 - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org