I've interpreted the demo as the code below. However, I get this exception when I compile: /snippet/TreeViewDemo.scala:14: error: not found: value JsObj TreeView("example", JsObj("animated"->90))
I'm not sure what I'm doing wrong.... I'd appreciate any help. Here's the code: package com.nsfw.bmp.businesssetup.snippet import _root_.net.liftweb.http._ import S._ import _root_.net.liftweb.http.js.JsObj import _root_.net.liftweb.util._ import Helpers._ import _root_.net.liftweb.widgets.tree._ import _root_.scala.xml._ class TreeViewDemo { def render(xhtml:Group):NodeSeq={ TreeView("example", JsObj(("animated"->90))) } def loadTree() = { Tree("No Children"):: Tree("one static child", Tree("Lone child") :: Nil) :: Tree("Dynamic node", "myDynamic", true) :: Nil } def loadNode(id:String) : List[Tree] = id match { case "myDyanmic" => Tree("Child one") :: Tree("Child two") ::Nil case _ => Nil } } --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---