Hi. I've seen a few threads about binding attribute values, but none of the solutions seem relevant for my problem. I am a Lift and Scala beginner, so I'm most likely missing something obvious.
I have the following template: <lift:foo.myFoos> <foos:list> <div id="foo_foo:id"> ... </div> </foos:list> </lift:foo.myFoos> and here is the piece of my Foo snippet to do with binding: def myFoos(xhtml : NodeSeq) : NodeSeq = foos.flatMap(foo => bind("foo", chooseTemplate("foos", "list", xhtml), "id" -> foo.id, ...)) What I want is for the id attribute in the div in the template to be given the value foo_1, foo_2, etc, depending on the value of foo.id in the snippet. What I get is foo_foo:id (and removing the 'foo_' part doesn't change anything). Can anybody help? Regards, Lance --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---