[Lift] Re: putting data in a session

2009-09-06 Thread Indrajit Raychaudhuri
object FooVar extends SessionVar[Box[String]](Empty) // to set FooVar.set(Full(fooValToSet)) // to retreive val foo = FooVar.is.openOr(Not found) Cheers, Indrajit On Sep 7, 12:36 am, jack jack.wid...@gmail.com wrote: How do I put something in the session from one page and take it out from

[Lift] Re: putting data in a session

2009-09-06 Thread Jack Widman
Thanks Indrajit for the quick response! On Sun, Sep 6, 2009 at 4:22 PM, Indrajit Raychaudhuri indraj...@gmail.comwrote: object FooVar extends SessionVar[Box[String]](Empty) // to set FooVar.set(Full(fooValToSet)) // to retreive val foo = FooVar.is.openOr(Not found) Cheers, Indrajit

[Lift] Re: putting data in a session

2009-09-06 Thread Jack Widman
I'm sorry for such an elementary question, but what is Empty here? On Sun, Sep 6, 2009 at 4:22 PM, Indrajit Raychaudhuri indraj...@gmail.comwrote: object FooVar extends SessionVar[Box[String]](Empty) // to set FooVar.set(Full(fooValToSet)) // to retreive val foo = FooVar.is.openOr(Not

[Lift] Re: putting data in a session

2009-09-06 Thread Jack Widman
I'm sorry. You probably meant 'None' On Sun, Sep 6, 2009 at 5:05 PM, Jack Widman jack.wid...@gmail.com wrote: I'm sorry for such an elementary question, but what is Empty here? On Sun, Sep 6, 2009 at 4:22 PM, Indrajit Raychaudhuri indraj...@gmail.com wrote: object FooVar extends

[Lift] Re: putting data in a session

2009-09-06 Thread Naftoli Gugenheim
Lift has Box which is like Option but with a third state for a failure. Empty corresponds to None, and Full, to Some. - Jack Widmanjack.wid...@gmail.com wrote: I'm sorry for such an elementary question, but what is Empty here? On Sun, Sep 6, 2009 at 4:22