If you're using Lift 1.0.x, the request will silently fail.

If you're using Lift 1.1-x, you will get a helpful error message reminding
you to add the /Test/hello link to your SiteMap in Boot.scala

On Wed, Sep 23, 2009 at 1:02 AM, Neil.Lv <anim...@gmail.com> wrote:

>
> Hi all,
>
>    Just I define a class that extends the LiftView trait, but there
> is something wrong with this class when i using it.
>
>    I wrote some test code like this:
>
> #######  code  #######
> package com.test.view
>
> import net.liftweb._
> import http._
>
> import scala.xml.{NodeSeq}
>
>
> class Test extends LiftView {
>        override def dispatch = {
>                case "hello" => doTest _
>        }
>
>        def doTest():NodeSeq = {
>                <lift:surround with="default" at="content">
>                        Time is: {new _root_.java.util.Date}
>                </lift:surround>
>        }
> }
> #######  code  #######
>
>   Use these links and always get this message "The Requested URL /
> Test/hello was not found on this server"
>   http://localhost:8080/Test/hello
>   http://localhost:8080/test/hello
>
>   Note: I don't change my Boot class in the  /src/main/scala/
> bootstrap/liftweb folder.
>
>
>   Is there anyone can help ?
>   Thanks very much!
>
> >
>


-- 
Lift, the simply functional web framework http://liftweb.net
Beginning Scala http://www.apress.com/book/view/1430219890
Follow me: http://twitter.com/dpp
Surf the harmonics

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

Reply via email to