[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 Widman wrote: I'm sorry for such an elementary question, but what is Empty here? On Sun, Sep 6, 2009 at 4:22 PM, Indrajit Raychaudhur

[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 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 > wrote: > >> >> object FooVar extends SessionVar[Box[String]](Empty) >> >> // t

[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 wrote: > > object FooVar extends SessionVar[Box[String]](Empty) > > // to set > FooVar.set(Full(fooValToSet)) > > // to retreive > val foo = FooVar.is.openOr("Not found") > > C

[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 wrote: > > 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

[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 wrote: > How do I put something in the session from one page and take it out > from another page? --~--