You might want to check out the Lift Book:
http://groups.google.com/group/the-lift-book

@Lift coders: Is there a reason there is no link anywhere on the
liftweb.netsite to the Lift Book?

Tim

On Tue, Jul 21, 2009 at 11:29 PM, Jeff McKenna <[email protected]>wrote:

>
> Xavi,
> That helps considerably.  Like you indicated, I still can not get .../
> test/ to find index without specifying it directly.
> Now I can go on with the tutorial.
> BTW. I am interested in how you found the better syntax to use.  I
> have been unable to find anything that describes a Loc except in the
> most cursory and not very useful manner and nothing that describes
> what the parameters actually mean.  It seems like examples are the
> only way to learn.  Perhaps this a new programming style: Programming
> by Wandering Around
> :-)
> Thanks again.
> Jeff
>
> On Jul 21, 7:44 pm, Xavi Ramirez <[email protected]> wrote:
> > Try renaming src/main/webapp/test.html to src/main/webapp/test1.html.
> > For some reason, I couldn't get test.html to show up, but test1.html
> > seems to work just fine.
> >
> > Also, try defining you sitemap using this syntax instead:
> >    val entries = Menu(Loc("Home", List("index"), "Home")) ::
> >                      Menu(Loc("Test1", List("test1"), "Test Page1")) ::
> >                      Menu(Loc("Test2", List("test", "test"), "Test
> > Page2")) :: Nil
> >    LiftRules.setSiteMap(SiteMap(pages:_*))
> >
> > Hope this helps!
> >
> > -Xavi
> >
> > On Tue, Jul 21, 2009 at 8:45 PM, Jeff McKenna<[email protected]>
> wrote:
> >
> > > Hum.  I changed the
> > >     import.Helpers._
> > > to
> > >    import _root_.net.liftweb.util.Helpers._
> > > No change.
> > > I kept trying things to try to match the intent of the tutorial
> > > Here is my latest one
> > >    val entries = Menu(Loc("Home", List("index"), "Home")) ::
> > >                                Menu(Loc("Test", List("/test/test"),
> "Test Page")) ::
> > > User.sitemap
> > > This compiles and continues to run ....8080/
> > > But it does not run 8080/test/test.
> >
> > > I have the following files in place:
> > > a) at src/main/webapp/test/test.html
> > > <html xmlns="http://www.w3.org/1999/xhtml";>
> > > <body>
> > >  Hello Friends!
> > > </body>
> > > </html>
> >
> > > b) at src/main/webapp/test.html
> > > <html xmlns="http://www.w3.org/1999/xhtml";>
> > > <body>
> > >  Hello Friends!
> > > </body>
> > > </html>
> >
> > > I have changed the second Men item above to be "/test" or "/test/" or /
> > > test/test" and I always get the same error:
> > >  The Requested URL /test/test.html was not found on this server
> >
> > > I am stumped.
> >
> > > On Jul 21, 5:06 pm, Naftoli Gugenheim <[email protected]> wrote:
> > >> No, sorry, I assumed you were talking about Exploring Lift. Just
> import net.liftweb.util.Helpers._
> >
> > >> -------------------------------------
> >
> > >> Jeff McKenna<[email protected]> wrote:
> >
> > >> I assume you mean in the wiki.
> > >> J
> >
> > >> On Jul 21, 3:36 pm, Naftoli Gugenheim <[email protected]> wrote:
> >
> > >> > Check the section "A Note on Standard Imports." Helpers has a bunch
> of implicits.
> >
> > >> > -------------------------------------
> >
> > >> > Jeff McKenna<[email protected]> wrote:
> >
> > >> > I am just running the liftwebapp tutorial and am running into a
> > >> > confusion.
> > >> > In section 2.1 a mechanism to extend the sitemap by changing a line
> in
> > >> > Boot.scala
> > >> >     val entries = Menu(Loc("Home", "/", "Home")) :: Menu(Loc("Test",
> "/
> > >> > test", "Test Page")) :: User.sitemap
> >
> > >> > When I do this, I get the following error when I run 'mvn jetty:run'
> > >> > .......
> > >> > [INFO] [scala:compile {execution: default}]
> > >> > [INFO] Checking for multiple versions of scala
> > >> > [INFO] Compiling 1 source files to /Users/jmckenna/Lift/hello-lift/
> > >> > target/classes
> > >> > [INFO] use java command with args in file forced : false
> > >> > /Users/jmckenna/Lift/hello-lift/src/main/scala/bootstrap/liftweb/
> > >> > Boot.scala:28: error: type mismatch;
> > >> >  found   : java.lang.String("/test")
> > >> >  required: net.liftweb.sitemap.Loc.Link
> > >> > [net.liftweb.sitemap.NullLocParams]
> > >> >                 Menu(Loc("Test", "/test", "Test Page")) ::
> User.sitemap
> > >> >                                  ^
> > >> > one error found
> > >> > [INFO]
> > >> >
> ------------------------------------------------------------------------
> > >> > [ERROR] BUILD FAILURE
> > >> > .......
> > >> > I kind of hope that tutorials work.  :-)  I tried a bunch of
> different
> > >> > ways to concatenate the menus but nothing seems to fix things up.  I
> > >> > used List(...) in place of the strings and removed the compilation
> > >> > errors.  But the site does not see the test directory. The error is:
> > >> > The Requested URL /test/ was not found on this server
> > >> > Any suggestions?
> > >> > Jeff
>
> >
>

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

Reply via email to