If your user account is not very heavy just do
MySession extends WebSession {
private UserAccount userAccount; // instead of just userid
}
2009/11/20 Douglas Ferguson <[email protected]>:
> I am maintaining an app that is written in wicket.
>
> When a user logs in the userId is stored on the session.
> There is a method on the session object that returns a
> UserAccountLoadableDetachable.
> This loadable detachable is created every time the method is called.
>
> My thought was that I could share it across the request.
>
> D/
>
>
> On Nov 19, 2009, at 3:53 PM, Igor Vaynberg wrote:
>
>> whats the usecase for a request-scoped variable?
>>
>> you can have a transient field on the page that you null in ondetach()...
>>
>> otherwise you can access httpservletrequest and use attributes.
>>
>> -igor
>>
>> On Thu, Nov 19, 2009 at 1:51 PM, Douglas Ferguson
>> <[email protected]> wrote:
>>> is there a best practice for request scoped variables in wicket?
>>>
>>> D/
>>>
>>> ---------------------------------------------------------------------
>>> 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]
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]