On Thu, Dec 17, 2009 at 4:17 PM, Peter Robinett <pe...@bubblefoundry.com>wrote:

> Sorry, I forget you wanted to use templating. You'd want your
> showAchievements() to return an XHTMLResponse with the html you've
> build. TemplateFinder can help, but
> LiftSession.processSurroundAndInclude which you'd use to execute any
> snippets in it naturally isn't available. I'm not sure what you'd do,
> to be honest.
>

I'm working on an example ;-)


>
> Peter
>
> On Dec 17, 2:59 pm, Peter Robinett <pe...@bubblefoundry.com> wrote:
> > Harry, isn't it just the same as if you were serving, say, a REST api
> > request? Add your Req case to the statelessDispatchTable and have it
> > call a method of your choosing like so: case r @ Req("iphone" ::
> > "achievements" :: Nil, "", GetRequest) => () => showAchievements(r). r
> > is a Req instance and showAchievements get request params from it
> > right like you would with S.param().
> >
> > Peter
> >
> > On Dec 17, 1:28 pm, harryh <har...@gmail.com> wrote:
> >
> >
> >
> > > I have a simple web page that is not based on any session state, only
> > > on the provided params and the contents of the datastore:
> >
> > >http://foursquare.com/iphone/achievements?uid=209&cityid=22
> >
> > > Can I serve this page from Lift's statelessDispatchTable and still
> > > using templating (and possibly S?) so that no Lift/Jetty session is
> > > created when serving this page?
> >
> > > -harryh
>
> --
>
> You received this message because you are subscribed to the Google Groups
> "Lift" group.
> To post to this group, send email to lift...@googlegroups.com.
> To unsubscribe from this group, send email to
> liftweb+unsubscr...@googlegroups.com<liftweb%2bunsubscr...@googlegroups.com>
> .
> For more options, visit this group at
> http://groups.google.com/group/liftweb?hl=en.
>
>
>


-- 
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 lift...@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.


Reply via email to