[Lift] Re: using Lift templates stand alone inside other frameworks like JAXRS?
2009/5/14 David Pollak feeder.of.the.be...@gmail.com: On Thu, May 14, 2009 at 12:55 AM, James Strachan james.strac...@gmail.com wrote: 2009/5/13 David Pollak feeder.of.the.be...@gmail.com: Please see: S.render(NodeSeq, HttpServletRequest): NodeSeq Awesome - huge thanks! :) I was just about to post a patch I'd figured out to implement this in a way less elegant way; you saved me the trouble :) I've managed to use this API to provide a basic integration of Lift templates and Jersey http://github.com/jstrachan/liftweb/tree/master/lift-jersey I'm still working on it to provide some better examples (and navigation isn't quite working yet), but so far its working pretty well! Cool. Are you involved with Dan Kulp in your JAXRS work? I work with Dan and know him well; but I hack on Jersey - I don't work on CXF. -- James --- http://macstrac.blogspot.com/ Open Source Integration http://fusesource.com/ --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
[Lift] Re: using Lift templates stand alone inside other frameworks like JAXRS?
On Thu, May 14, 2009 at 12:55 AM, James Strachan james.strac...@gmail.comwrote: 2009/5/13 David Pollak feeder.of.the.be...@gmail.com: Please see: S.render(NodeSeq, HttpServletRequest): NodeSeq Awesome - huge thanks! :) I was just about to post a patch I'd figured out to implement this in a way less elegant way; you saved me the trouble :) I've managed to use this API to provide a basic integration of Lift templates and Jersey http://github.com/jstrachan/liftweb/tree/master/lift-jersey I'm still working on it to provide some better examples (and navigation isn't quite working yet), but so far its working pretty well! Cool. Are you involved with Dan Kulp in your JAXRS work? -- James --- http://macstrac.blogspot.com/ Open Source Integration http://fusesource.com/ -- 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 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 -~--~~~~--~~--~--~---
[Lift] Re: using Lift templates stand alone inside other frameworks like JAXRS?
Please see: S.render(NodeSeq, HttpServletRequest): NodeSeq Thanks, David On Wed, Apr 22, 2009 at 11:43 AM, James Strachan james.strac...@gmail.comwrote: 2009/4/22 David Pollak feeder.of.the.be...@gmail.com: On Wed, Apr 22, 2009 at 9:16 AM, James Strachan james.strac...@gmail.com wrote: 2009/4/22 David Pollak feeder.of.the.be...@gmail.com: James, This is an interesting idea that more than one person has expressed excitement about. Jorge Ortiz (one of the Lift committers) was puttering around with the separation of Lift's templating from the rest of Lift. Personally, I think it's a pretty daunting task because a lot of the ways that Lift looks for templates and does its wiring and looks for snippets and generally re-writes the XML (e.g., to insert the Comet JavaScript), is woven tightly with the rest of Lift (e.g., LiftRules, LiftSession, etc.) I am in favor of something like this happening, but I really think it's non-trivial. Perhaps... just perhaps... we could do something where we put Java wrappers around some of the Lift-isms and use Lift as Filter in Java apps. If you'd care to fork the Lift repository on GitHub and recruit a few others to help you, this could be an interesting side-project that, if successful, I could see as part of the main Lift distribution. Cool thanks. BTW I don't much mind about ripping the template stuff out of Lift into a separate piece - I am totally happy to have LiftRules/LiftSession, Comet et al there and to keep Lift intact. I guess all I really want is a way to render a NodeSeq which can contain lift:surround and other arbitrary snippets inside. So all I really want is another entry point into Lift other than the filter/servlet where somehow I can do something like this... LiftServlet.render(xhtml:NodeSeq, out:OutputStream) Would: LiftServlet.render(xhtml:NodeSeq, httpRequest: HttpServletRequest): LiftResponse work along with helper methods to stream a LiftResponse out to an OutputStream work? That would be perfect, yes please! :) -- James --- http://macstrac.blogspot.com/ Open Source Integration http://fusesource.com/ -- 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 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 -~--~~~~--~~--~--~---
[Lift] Re: using Lift templates stand alone inside other frameworks like JAXRS?
Just to emphasise this: I tried to decouple some of the templating stuff previously and it was difficult to the point that I stopped bothering (jorge was helping too) By all means, id love to see this work, but it would be a quite a task and one that involves knowing exactly how lift template pipeline works - good luck! Tim On 22/04/2009 17:04, David Pollak feeder.of.the.be...@gmail.com wrote: I am in favor of something like this happening, but I really think it's non-trivial. --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
[Lift] Re: using Lift templates stand alone inside other frameworks like JAXRS?
2009/4/22 David Pollak feeder.of.the.be...@gmail.com: James, This is an interesting idea that more than one person has expressed excitement about. Jorge Ortiz (one of the Lift committers) was puttering around with the separation of Lift's templating from the rest of Lift. Personally, I think it's a pretty daunting task because a lot of the ways that Lift looks for templates and does its wiring and looks for snippets and generally re-writes the XML (e.g., to insert the Comet JavaScript), is woven tightly with the rest of Lift (e.g., LiftRules, LiftSession, etc.) I am in favor of something like this happening, but I really think it's non-trivial. Perhaps... just perhaps... we could do something where we put Java wrappers around some of the Lift-isms and use Lift as Filter in Java apps. If you'd care to fork the Lift repository on GitHub and recruit a few others to help you, this could be an interesting side-project that, if successful, I could see as part of the main Lift distribution. Cool thanks. BTW I don't much mind about ripping the template stuff out of Lift into a separate piece - I am totally happy to have LiftRules/LiftSession, Comet et al there and to keep Lift intact. I guess all I really want is a way to render a NodeSeq which can contain lift:surround and other arbitrary snippets inside. So all I really want is another entry point into Lift other than the filter/servlet where somehow I can do something like this... LiftServlet.render(xhtml:NodeSeq, out:OutputStream) which delves into the internal Lift stuff I don't grok in between LiftServlet and TemplateFinder and does all that cool magic :) I could pass in a servletRequest/response too if that'd help make the implementation easier. I realise this could be tricky though with all that ajax stuff etc. -- James --- http://macstrac.blogspot.com/ Open Source Integration http://fusesource.com/ --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
[Lift] Re: using Lift templates stand alone inside other frameworks like JAXRS?
On Wed, Apr 22, 2009 at 9:16 AM, James Strachan james.strac...@gmail.comwrote: 2009/4/22 David Pollak feeder.of.the.be...@gmail.com: James, This is an interesting idea that more than one person has expressed excitement about. Jorge Ortiz (one of the Lift committers) was puttering around with the separation of Lift's templating from the rest of Lift. Personally, I think it's a pretty daunting task because a lot of the ways that Lift looks for templates and does its wiring and looks for snippets and generally re-writes the XML (e.g., to insert the Comet JavaScript), is woven tightly with the rest of Lift (e.g., LiftRules, LiftSession, etc.) I am in favor of something like this happening, but I really think it's non-trivial. Perhaps... just perhaps... we could do something where we put Java wrappers around some of the Lift-isms and use Lift as Filter in Java apps. If you'd care to fork the Lift repository on GitHub and recruit a few others to help you, this could be an interesting side-project that, if successful, I could see as part of the main Lift distribution. Cool thanks. BTW I don't much mind about ripping the template stuff out of Lift into a separate piece - I am totally happy to have LiftRules/LiftSession, Comet et al there and to keep Lift intact. I guess all I really want is a way to render a NodeSeq which can contain lift:surround and other arbitrary snippets inside. So all I really want is another entry point into Lift other than the filter/servlet where somehow I can do something like this... LiftServlet.render(xhtml:NodeSeq, out:OutputStream) Would: LiftServlet.render(xhtml:NodeSeq, httpRequest: HttpServletRequest): LiftResponse work along with helper methods to stream a LiftResponse out to an OutputStream work? which delves into the internal Lift stuff I don't grok in between LiftServlet and TemplateFinder and does all that cool magic :) I could pass in a servletRequest/response too if that'd help make the implementation easier. I realise this could be tricky though with all that ajax stuff etc. -- James --- http://macstrac.blogspot.com/ Open Source Integration http://fusesource.com/ -- 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 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 -~--~~~~--~~--~--~---
[Lift] Re: using Lift templates stand alone inside other frameworks like JAXRS?
2009/4/22 David Pollak feeder.of.the.be...@gmail.com: On Wed, Apr 22, 2009 at 9:16 AM, James Strachan james.strac...@gmail.com wrote: 2009/4/22 David Pollak feeder.of.the.be...@gmail.com: James, This is an interesting idea that more than one person has expressed excitement about. Jorge Ortiz (one of the Lift committers) was puttering around with the separation of Lift's templating from the rest of Lift. Personally, I think it's a pretty daunting task because a lot of the ways that Lift looks for templates and does its wiring and looks for snippets and generally re-writes the XML (e.g., to insert the Comet JavaScript), is woven tightly with the rest of Lift (e.g., LiftRules, LiftSession, etc.) I am in favor of something like this happening, but I really think it's non-trivial. Perhaps... just perhaps... we could do something where we put Java wrappers around some of the Lift-isms and use Lift as Filter in Java apps. If you'd care to fork the Lift repository on GitHub and recruit a few others to help you, this could be an interesting side-project that, if successful, I could see as part of the main Lift distribution. Cool thanks. BTW I don't much mind about ripping the template stuff out of Lift into a separate piece - I am totally happy to have LiftRules/LiftSession, Comet et al there and to keep Lift intact. I guess all I really want is a way to render a NodeSeq which can contain lift:surround and other arbitrary snippets inside. So all I really want is another entry point into Lift other than the filter/servlet where somehow I can do something like this... LiftServlet.render(xhtml:NodeSeq, out:OutputStream) Would: LiftServlet.render(xhtml:NodeSeq, httpRequest: HttpServletRequest): LiftResponse work along with helper methods to stream a LiftResponse out to an OutputStream work? That would be perfect, yes please! :) -- James --- http://macstrac.blogspot.com/ Open Source Integration http://fusesource.com/ --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---