> What am I missing? I assume there is a problem with the fruits method > signature. Do snippet methods havve to return NodeSeq?
Yes, if you change it to this, you'll be good to go: def fruits(xhtml:NodeSeq): NodeSeq = { List("apple", "orange", "banana").flatMap( fruit => bind("f", xhtml, "name" -> fruit) ) } On Mar 20, 3:21 am, Thomas Rynne <thomas.ry...@gmail.com> wrote: > 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 > <lift:helloWorld.fruits> > <f:name/> <br /> > </lift:helloWorld.fruits> > > 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 -~----------~----~----~----~------~----~------~--~---