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
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
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
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 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