Re: For objects out of session, work with directly or use loadable detachable model

2010-11-10 Thread Igor Vaynberg
even though they are in session it is still better to use a detachable model. if you dont you may end up with the instance in session and in your page diverging on back button because wicket clones the page with the page being the root not the session so it wont handle the reference properly. the r

For objects out of session, work with directly or use loadable detachable model

2010-11-10 Thread Brown, Berlin [GCG-PFS]
For objects that I get from session, I was trying to avoid accessing them in the constructor but I wanted to setup my default model so that they are pulled on the load method from a loadabledetachable model. Which approach do you use? Here are the three approaches, (The code below is pseudo co