This may be more of a feature request than a question. I generally use StatefulSnippets rather than RequestVars. I have several places in my Lift webapp where one should be redirected to a screen managed by a StatefulSnippet. Until recently I thought it would suffice to use S.mapSnippet to map the StatefulSnippet's method as a function. However, this approach has two shortcomings: (1) If the page uses multiple snippet methods it become tedious to write mapSnippet for each one. (2) Since the snippet can't be registered because it can only get a snippetName via private[http] API, any stateful links, redirects, or submits don't work. Of course a workaround may be custom replacement methods on the snippet that use multiple mapSnippets rather than registerThisSnippet, but again this can become tedious. Would it be possible to create a public API either to assign a snippet its name so it can be registered, or to retreive a snippet by name? Or better yet, assign its name in its constructor or the first time registerThisSnippet etc. is called?
--~--~---------~--~----~------------~-------~--~----~ 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 liftweb+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~----------~----~----~----~------~----~------~--~---