Hi,

when I apply the Wicket 1.3 way to determine session size,
RequestCycle.get().getSession().getSizeInBytes()
it results in an around 3000bytes value in my case. And adding or
removing Labels changed the session size.

Now with Wicket 1.5 using
Session.get().getSizeInBytes()
session size is 857bytes. And I can add or remove as many Lables as I
wish, that size stays the same. Obviously I use it wrong. Currently I
just add the session size result to a Label added to my single WebPage:
public HomePage(final PageParameters parameters) {
  ...
  add(new Label("ssize", String.valueOf(Session.get().getSizeInBytes())));
  ...
}

Where do I read the session size to get a proper result?

Thanks,
Walter

On 19/06/12 21:30, Walter Rugora wrote:
> Thanks guys!
> 
> On Tue 19 Jun 2012 21:12:48 EST, Martin Grigorov wrote:
>> On Tue, Jun 19, 2012 at 2:10 PM, Thomas Götz <[email protected]> wrote:
>>> Session.get().getSizeInBytes();
>>
>> Apparently it is not removed ...
>>
>>>
>>>   -Tom
>>>
>>>
>>> On 19.06.2012 at 13:03 Walter Rugora wrote:
>>>
>>>> Hi there,
>>>>
>>>> for Wicket 1.3 I determine session size like this:
>>>> RequestCycle.get().getSession().getSizeInBytes()
>>>>
>>>> But the RequestCycle underwent some changes and I cannot figure out how
>>>> to do it for Wicket 1.5?
>>>>
>>>> Appreciate your help!
>>>> Walter
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: [email protected]
>>> For additional commands, e-mail: [email protected]
>>>
>>
>>
>>
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to