You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Bergmann Manfred <mb...@software-by-mabe.com> on 2021/04/01 13:27:58 UTC
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-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: Replacement for HttpSessionDataStore
Posted by Sven Meier <sv...@meiers.net>.
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-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: Replacement for HttpSessionDataStore
Posted by Sven Meier <sv...@meiers.net>.
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 <mb...@software-by-mabe.com>:
>>
>> 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-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: Replacement for HttpSessionDataStore
Posted by Bergmann Manfred <mb...@software-by-mabe.com>.
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 <mb...@software-by-mabe.com>:
>
> 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-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org