On Tue, Aug 25, 2009 at 12:36 PM, harryh <[email protected]> wrote: > > > There are two ways to deal with this: RequestVars and StatefulSnippets. > > What about in cases where I'm not creating a new Thing, but editing an > existing one.
In the RequestVar case, you could have a function associated with the link that brings you to the page that sets the RequestVar to an existing instance. In the case of the StatefulSnippet replace the Thing.create with calculateThing openOr Thing.create where calculateThing determines the instance. > It seems like what maybe should be done is down in the > guts of the toForm function it should be examining S.attr([the field > guid]) it if that exists the <input> should get that value instead of > the current state of the Thing. I'm not sure I understand what you're suggesting. Can you be a little more explicit about your suggestion? > > > -harryh > > > > -- Lift, the simply functional web framework http://liftweb.net Beginning Scala http://www.apress.com/book/view/1430219890 Follow me: http://twitter.com/dpp Git some: http://github.com/dpp --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Lift" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~----------~----~----~----~------~----~------~--~---
