On Tue, Sep 22, 2009 at 11:52 PM, Jeppe Nejsum Madsen <je...@ingolfs.dk>wrote:

> David Pollak <feeder.of.the.be...@gmail.com> writes:
> > I've added code (it's in review board right now) that will automatically
> > farm any snippet with the "do:lazy='true'" attribute set.
> >
> > So, <lift:foo/> will execute the foo snippet inline.
> >
> > <lift:foo do:lazy="true"/> will execute the foo snippet in parallel and
> join
> > the result back to page before its rendered.
> Very nice! In what context is the snippet executed? I assume that
> all timeout handling, errors etc should be handled by the snippet just
> as in the non-lazy fashion?

The NodeSeq that the snippet returns is rolled into the rendered page.

The SessionVars are available and bi-directional (set anywhere is visible
anywhere.)  The RequestVars are snapshotted at the time the snippet is
forked so you can see all RequestVars that were set before the snippet
forking, but any subsequent changes by either the main thread or the forked
thread are only visible on that thread.

You may nest forked snippets.

S is valid for parallel snippets (including the request, etc.)

> /Jeppe
> >

Lift, the simply functional web framework http://liftweb.net
Beginning Scala http://www.apress.com/book/view/1430219890
Follow me: http://twitter.com/dpp
Surf the harmonics

You received this message because you are subscribed to the Google Groups 
"Lift" group.
To post to this group, send email to liftweb@googlegroups.com
To unsubscribe from this group, send email to 
For more options, visit this group at 

Reply via email to