On Thu, Aug 27, 2009 at 9:49 AM, Daniel Nelson <[email protected]> wrote:
> Hello, > > *Problem* > I'm new to Lift/Scala and trying to understand/experiment with Lift's View > folder. I've not gotten past a 404 error on the browser (as it relates to > the View folder; templates render fine). I'd suggest using Lift 1.1-SNAPSHOT... you would have likely gotten a polite error message. In this case, I believe you have to add XmlFun/index to your sitemap in Boot.scala > > > *Background/Environment* > I've been reading "Exploring Lift" (~Section 3.7) along with "What's the > 'View' folder for?" from http://wiki.liftweb.net/index.php/FAQ. > > Following are the URL and corresponding class (in the View Folder and > adapted from http://github.com/dpp/liftweb/... > here<http://github.com/dpp/liftweb/blob/be8f0c4ea9eb0f145e0452cc6100943b7f4888cf/sites/example/src/main/scala/net/liftweb/example/view/XmlFun.scala>). > > > The server is maven/jetty. > > I'm struggling to find other reading materials/examples which highlight my > error(s); any help is appreciated. Thanks! Dan > > ~~~ > > URL: http://localhost:8080/XmlFun/index > > package org.delreino.simplyLift.view > > import _root_.scala.xml.{Text, Node, NodeSeq} > import _root_.net.liftweb.http._ > import S._ > import _root_.net.liftweb.util._ > > class XmlFun extends LiftView { > def dispatch = Map("index" -> render _) > def render = { > println ("XmlFun") > Full( > <lift:surround with="default" at="content"> > <p>XMLFun</p> > </lift:surround>) > } > } > > > > -- Lift, the simply functional web framework http://liftweb.net Beginning Scala http://www.apress.com/book/view/1430219890 Follow me: http://twitter.com/dpp Git some: http://github.com/dpp --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Lift" group. To post to this group, send email to [email protected] 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 -~----------~----~----~----~------~----~------~--~---
