[Lift] Re: Tabbed browsing and session state

2009-09-28 Thread marius d.
On Sep 27, 10:31 am, Naftoli Gugenheim naftoli...@gmail.com wrote: Do you mean multiple browser tabs? They won't interfere, because which stateful snippet is used in a given request depends on which is registered in that request which depends on which function is called which depends on

[Lift] Re: Tabbed browsing and session state

2009-09-27 Thread tiro
Naftoli, thanks for providing these insights into the inner workings of Stateful Snippets. The mapSnippet solution sounds interesting. I knew that snippets don't live on when not needed, but assumed that IF one is alive in the current session, you would always get that one instance. Hence at

[Lift] Re: Tabbed browsing and session state

2009-09-27 Thread Timothy Perrett
Please bear in mind that this is *first pass* code and nothing production ready. Cheers, Tim On 27 Sep 2009, at 16:10, marius d. wrote: Please see the lift-wizard project. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the

[Lift] Re: Tabbed browsing and session state

2009-09-27 Thread Naftoli Gugenheim
Do you mean multiple browser tabs? They won't interfere, because which stateful snippet is used in a given request depends on which is registered in that request which depends on which function is called which depends on which function id is in the request query parameters which depends on the

[Lift] Re: Tabbed browsing and session state

2009-09-26 Thread Naftoli Gugenheim
I think what you want is StatefulSnippet. They're lifetime is not the session--it's as long as you keep it alive. Basically Lift maintains a registry of stateful snippets in each request. When a snippet is needed (referenced in a template), if an instance exists in the registry that instance

[Lift] Re: Tabbed browsing and session state

2009-09-26 Thread marius d.
On Sep 26, 10:38 am, tiro tim.romb...@googlemail.com wrote: Hi, has anyone investigated or built a way to support tabbed browsing when there is considerable view/workflow state? Or have I missed an elegant way for this to be done in Lift? There is a rather recent wizard code in lift that