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