[Lift] Re: Good way to implement "cancel" links?

2009-04-05 Thread David Pollak
On Sun, Apr 5, 2009 at 6:06 AM, Clemens Oertel wrote: > Thanks, David. > Just for my understanding: Links generated by SHtml.link are valid > throughout the entire session? > They are valid as long as they are being displayed on a page. Lift has a garbage collection mechanism and, by default, if

[Lift] Re: Good way to implement "cancel" links?

2009-04-05 Thread Clemens Oertel
Thanks, David. Just for my understanding: Links generated by SHtml.link are valid throughout the entire session? For a multi-page form, storing the referrer in the first step in a RequestVar would then also work, I take it. Thank you, Clemens On 4-Apr-09, at 6:41 PM, David Pollak wrote: >

[Lift] Re: Good way to implement "cancel" links?

2009-04-04 Thread David Pollak
S.referer.map(from => SHtml.link("cancel", () => redirectTo(from))) openOr Text("") On Sat, Apr 4, 2009 at 3:20 PM, Clemens Oertel wrote: > > Hi, > > What's the best way to get generic "Cancel" links into forms, lift- > style? Assuming that a form can be called from different pages in the > appli