Am 15.06.2011 08:36, schrieb Zeldor:
> Hi,
>
> My last attempts to fix my session and advices here made me thinking if my
> approach is good. So I'm curious - how do you handle users and their data?
> In my case I have session, when user logs in entire entity gets loaded into
> session. Later I get user data from that session and when he changes
> anything it gets persisted to db. There is no direct interaction between
> user and only that user can access his data. What is your approach? :)

My approach is: load user data every time from DB. This way your session
is always small

or take a look to LoadableDetachableModel:
https://cwiki.apache.org/WICKET/detachable-models.html

Regards,
Peter.

-- 
http://jetwick.com open twitter search


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org

Reply via email to