[Lift] Re: How to handle refresh with S.redirectTo with state?

2009-05-05 Thread Bryan.
Thanks for the reply, Marius. I just saw your reply and am not sure I fully grasp how this is safe. What if request A comes in and sets com.bryan.myproject.locationQuery and starts working on processing the rest of the request. In the meantime, request B comes in and sets

[Lift] Re: How to handle refresh with S.redirectTo with state?

2009-05-05 Thread David Pollak
On Tue, May 5, 2009 at 7:20 AM, Bryan. germ...@gmail.com wrote: Thanks for the reply, Marius. I just saw your reply and am not sure I fully grasp how this is safe. What if request A comes in and sets com.bryan.myproject.locationQuery and starts working on processing the rest of the request.

[Lift] Re: How to handle refresh with S.redirectTo with state?

2009-05-04 Thread marius d.
Not at all. They are safe. On May 3, 9:49 pm, Bryan. germ...@gmail.com wrote: Would that mean that the state of the RequestVar could accidentally be shared with multiple requests? On May 3, 1:51 pm, marius d. marius.dan...@gmail.com wrote: Hmmm ... the code seems to be fine (as far as I

[Lift] Re: How to handle refresh with S.redirectTo with state?

2009-05-03 Thread Bryan.
I believe I am doing #1 now with no luck. Let me know if this is correct: class Cars { // ... object locationQuery extends RequestVar[Box[LocationQuery]](Empty) def search(xhtml: NodeSeq): NodeSeq = { def processSearch() = { // ... val lq = new

[Lift] Re: How to handle refresh with S.redirectTo with state?

2009-05-03 Thread Bryan.
Would that mean that the state of the RequestVar could accidentally be shared with multiple requests? On May 3, 1:51 pm, marius d. marius.dan...@gmail.com wrote: Hmmm ... the code seems to be fine (as far as I can tell from the code snippet) Can you perhaps declare your RequestVars outside