[Lift] Snippet question
Sorry if i am asking a lot of questions lately, but i am trying to get this project of mine working so i can write about the specific problems i ran into and how they got done. def subnets(xhtml: NodeSeq): NodeSeq = { val content = IPnet.findAll(OrderBy(IPnet.name, Ascending)).map(ip => { /* Bind the xml */ bind("ip", xhtml, "subnet" -> Text(ip.name.toString), "action" -> SHtml.a(expand(ip.subnet) _, "See all IPs") ) }).mkString XML.loadString("%s".format(content)) } def expand(subnet: String): JsCmd = { Log.info("Requested subnet %s".format(subnet)) Alert("subnet %s was requested".format(subnet)) } The Problem is the "action" that gets binded. I don't get how i have to use SHtml.a to pass a value to the called function. Any hints? Thank you very much in advance -- 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.
[Lift] Snippet question
I copied the Misc snippet over from the example, changed the package and import statements to fit my app, and created a users/index page. Add a User The app builds and runs in Jetty, but when I go to the users/index page I get: Add a User Not sure what happened to the Users table. The Jetty output says this: Snippet Failure: SnippetFailure(/users/ -> ParsePath(List(users, index),,true,true),Full(Misc.users),Class Not Found) Any ideas as to which class it's not finding and why? Is there something else I need to post? Chas. --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~--~~~~--~~--~--~---