[Lift] Re: Dynamic Image generation / HttpServletResponse
On Mar 26, 12:14 am, David Pollak wrote: > Here's some code to serve an image out of the database. > ... > Does this help? Yes it does. I've got it working now. Thanks, Thomas --~--~-~--~~~---~--~~ 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] Dynamic Image generation / HttpServletResponse
Hi, I want to dynamically generate images (actually a graph). I could write a seperate servlet for this but I'd like easy access to the Mapper classes and the logged in User etc so would prefer to write it as a method in lift. Is there a hook for this? I suppose I essentially want direct acccess to the httpresponse. I found some discussion of this here: http://groups.google.com/group/liftweb/browse_thread/thread/9d6f61f69a20765/d98a32e89e87d317 but I don't know if it was ever implemented, and need some pointers/ documentation if it has been. thanks for any advice, Thomas --~--~-~--~~~---~--~~ 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: Lists in snippets / Snippet Failure
Thank you, It is working now. I am very happy. Thomas --~--~-~--~~~---~--~~ 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] Lists in snippets / Snippet Failure
I am trying to render a list of items using bind without success. I have reduced it to a clean liftweb project with the following in HelloWorld.scala def fruits(xhtml:NodeSeq) = { List("apple", "orange", "banana").flatMap( fruit => bind("f", xhtml, "name" -> fruit) ) } And this in index.html The snippet is not rendered and I get this in the logs: WARN - Snippet Failure: SnippetFailure(/ -> ParsePath(List (index),,true,false),Full(helloWorld.fruits),Method Not Found) What am I missing? I assume there is a problem with the fruits method signature. Do snippet methods havve to return NodeSeq? thanks for any advice. Thomas --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---