[Lift] Re: (beginner question) Liftweb View folder

2009-08-28 Thread dan

On Aug 27, 12:26 pm, David Pollak 
wrote:
> On Thu, Aug 27, 2009 at 9:49 AM, Daniel Nelson  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?" fromhttp://wiki.liftweb.net/index.php/FAQ.
>
> > Following are the URL and corresponding class (in the View Folder and
> > adapted fromhttp://github.com/dpp/liftweb/...   
> > here).
>
> > 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(
> >         
> >         XMLFun
> >         )
> >     }
> > }
>
> --
> Lift, the simply functional web frameworkhttp://liftweb.net
> Beginning Scalahttp://www.apress.com/book/view/1430219890
> Follow me:http://twitter.com/dpp
> Git some:http://github.com/dpp

Yes; thank you very much, David.  My gap was with sitemap's role in
exposing/enabling the View folder.

Thanks,
Dan

--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



[Lift] Re: (beginner question) Liftweb View folder

2009-08-27 Thread David Pollak
On Thu, Aug 27, 2009 at 9:49 AM, Daniel Nelson  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).
>
>
> 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(
> 
> XMLFun
> )
> }
> }
>
> >
>


-- 
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 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
-~--~~~~--~~--~--~---