Re: Storing Pages

2016-04-26 Thread Martin Grigorov
Wicket already does this. Please check https://ci.apache.org/projects/wicket/guide/7.x/guide/internals.html#pagestoring In short: The stateful page(s) used in the last request cycle are stored in the http session as live instances, because the chance to reuse it/them is high, e.g. clicking a link.

Re: Storing Pages

2016-04-26 Thread Lon Varscsak
To be clearer, I just basically want to take a page that the user is on, keep a reference to it, and return the user back to it at some point in the future. It seems to work fine (I’m used to doing this since Apple’s WebObjects is similar), but I just wanted to make sure I didn’t paint myself into

Re: Storing Pages

2016-04-26 Thread Martin Grigorov
On Tue, Apr 26, 2016 at 10:25 PM, Lon Varscsak wrote: > So by sending me there are you suggesting that storing an iVar to a page > object is bad? > I haven't re-read the discussion soon, so I am not sure what you relate to. I just gave you a link to a similar discussion and a possible implementa

Re: Storing Pages

2016-04-26 Thread Lon Varscsak
So by sending me there are you suggesting that storing an iVar to a page object is bad? On Tue, Apr 26, 2016 at 1:00 PM, Martin Grigorov wrote: > Hi, > > Take a look at https://github.com/martin-g/single-page-instance and the > discussion about it at http://markmail.org/message/ofyvgybcjp5cvf75

Re: Storing Pages

2016-04-26 Thread Martin Grigorov
Hi, Take a look at https://github.com/martin-g/single-page-instance and the discussion about it at http://markmail.org/message/ofyvgybcjp5cvf75 Might be useful for you! Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Tue, Apr 26, 2016 at 6:22 PM, Lon Varscsak wr

Storing Pages

2016-04-26 Thread Lon Varscsak
Is it bad to store pages in the session for re-use? The idea being that for a given page, I only want one instance per session. -Lon (Wicket Newb)