RE: Store models short-term

2012-05-05 Thread JASON HOLT
... Date: Fri, 4 May 2012 15:15:08 -0700 Subject: Re: Store models short-term From: dretzl...@gmail.com To: users@wicket.apache.org Hi, Jason. Welcome to Wicket! If you want to tie an entity to a page, best save the entity within the page itself. You can do this by using a simple

Re: Store models short-term

2012-05-05 Thread Jeremy Thomerson
On Fri, May 4, 2012 at 6:15 PM, Dan Retzlaff dretzl...@gmail.com wrote: I'll mention one hack for which another Wicket user should rightly reprimand me. As I mentioned recently, Wicket keeps the most recently accessed page is a deserialized state to optimize serving the next request. All

Re: Store models short-term

2012-05-05 Thread Dan Retzlaff
Yes, you still deal with detached entities (LazyInitializationException, StaleStateException, last writer wins, etc). And worse in my opinion, it makes things different when responding from the latest page vs. a page recovered with the back button, or if another window/tab has made an intervening

Re: Store models short-term

2012-05-04 Thread Dan Retzlaff
Hi, Jason. Welcome to Wicket! If you want to tie an entity to a page, best save the entity within the page itself. You can do this by using a simple o.a.w.model.Model. If you don't want to detach between requests, then LDM is not a good fit. There are use cases where serializing entities at the