On Mon, Jul 13, 2009 at 3:21 PM, Ross Mellgren <[email protected]> wrote:
> > Hi all, > > Is there any way to get a StatefulSnippet instance for a particular > class in the current session? It looks like there's machinery in S, > LiftRules, and LiftSession to get these but they're all marked > private[http]. > > I'm still getting used to Lift, so I could very well be approaching > this the wrong way (using a custom dispatch) -- I have a snippet which > manages an image editing workflow. I'd like to create a dispatch which > serves up the current version of the image(s) to the user, so I need > to dump back a raw response without any template processing. > > I could stuff the current image(s) in a SessionVar or perhaps use an > injector and RequestVar, perhaps? Your best bet is to use a SessionVar. Put the image or a pointer to how to get the image in a SessionVar. > > > -Ross > > > > > -- 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 -~----------~----~----~----~------~----~------~--~---
