Re: Session size vs detached models

2014-02-14 Thread Daniel Stoch
On Fri, Feb 14, 2014 at 4:12 PM, Martin Grigorov wrote: > > > should be detached, so this last page reference should not hold transient > > LDM values. Is it true? > > > > LDM null-yfies its transien field explicitly: > > https://github.com/apache/wicket/blob/master/wicket-core/src/main/java/org/a

Re: Session size vs detached models

2014-02-14 Thread Martin Grigorov
Hi, On Fri, Feb 14, 2014 at 3:55 PM, Daniel Stoch wrote: > Hi, > > In Wicket 1.4 the last page reference is hold in a session (is it in 6.x > also?). So after a request has been processed all components and models > Yes. A live instance of the last used page is kept in the http session. Actually

Session size vs detached models

2014-02-14 Thread Daniel Stoch
Hi, In Wicket 1.4 the last page reference is hold in a session (is it in 6.x also?). So after a request has been processed all components and models should be detached, so this last page reference should not hold transient LDM values. Is it true? When we are using DebugBar with SessionSizeDebugPa

Re: loadable detached models and versioning

2010-05-12 Thread Michael O'Cleirigh
Hello, Another option would be to make your detachable model aware of the version aswell as the id which will allow you to catch this case. Process: Cache the version aswell as the object id. Then either do a query to make sure the cached version is still valid or wait until after the objec

Re: loadable detached models and versioning

2010-05-12 Thread James Carman
On Wed, May 12, 2010 at 10:52 AM, David Sheth wrote: > Hi all.  I'm new to wicket.  I was reading in the Wicket In Action book on > LoadableDetachedModels...particularly how when the model is detached, just > the id of the actual database persistent object is stored.  Then, in the > load method, y

loadable detached models and versioning

2010-05-12 Thread David Sheth
Hi all. I'm new to wicket. I was reading in the Wicket In Action book on LoadableDetachedModels...particularly how when the model is detached, just the id of the actual database persistent object is stored. Then, in the load method, you retrieve the persistent object from the database. That all

Re: Detached models

2008-05-08 Thread James Carman
; wrote: >> > > >> > > Thanks Igor! >> > > >> > > So if I use the sample code you gave me and, when getting the Object >> from >> > > the constructor >> > > on the response page I will have a detached object.

Re: Detached models

2008-05-08 Thread Igor Vaynberg
t. > > > > > > Do I have to load the object from database here? When looking at the > Phone > > > book example I see you pass id instead of object. Is this more > lightweight > > >

Re: Detached models

2008-05-08 Thread James Carman
from > > the constructor > > on the response page I will have a detached object. > > > > Do I have to load the object from database here? When looking at the Phone > > book example I see you pass id instead of object. Is this more lightweight > > or is

Re: Detached models

2008-05-08 Thread Igor Vaynberg
> book example I see you pass id instead of object. Is this more lightweight > or is it better practice to just pass the id and not the whole object? > > > -- > View this message in context: > http://www.nabble.com/Detached-models-tp17136199p17137533.html > > > Se

Re: Detached models

2008-05-08 Thread Mathias P.W Nilsson
lightweight or is it better practice to just pass the id and not the whole object? -- View this message in context: http://www.nabble.com/Detached-models-tp17136199p17137533.html Sent from the Wicket - User mailing list archive at Nabble.com

Re: Detached models

2008-05-08 Thread Igor Vaynberg
ate proxy? If so, how > can I > > get it detached all the way? > > > > > > Igor wrote something about a detached DataProvider. Do I need to use > > DataProvider to get detached hibernate pojos? I would really want to know > > how to do this. Right now,

Re: Detached models

2008-05-08 Thread Igor Vaynberg
er. Do I need to use > DataProvider to get detached hibernate pojos? I would really want to know > how to do this. Right now, I'm in spagetti code with DAOS that throws > LazyLoading exceptions and Wicket pages that does the same. > > > -- > View this message in cont

Re: Detached models

2008-05-08 Thread James Carman
Why do you need it "detached all the way"? On Thu, May 8, 2008 at 4:56 PM, Mathias P.W Nilsson <[EMAIL PROTECTED]> wrote: > > I have some questions on detached models for Wicket > > Let's say I create a detached model like this > > IModel deta

Detached models

2008-05-08 Thread Mathias P.W Nilsson
I have some questions on detached models for Wicket Let's say I create a detached model like this IModel detachedModel = new LoadableDetachableModel(){ protected Object load(){ return . spring injected hibernate dao lets say Categories } }; So now I'll have a deta