I am going through the tutorials and playing around with lift.  I'm
running off of the 1.0 release since I had some issues with broken
snapshots on 1.1.  I have a question about how the dispatch works.

I have a view in my view package defined as such:

class TopicView extends LiftView{

    override def dispatch  = {
        case "index"=> test _
        case "list" => doList _
        case "add" => doAdd _
        case "test" => test _
    }
...
   def test = <b>the test worked</b>
}

First I try to hit http:/localhost/<contextpath>/TopicView/test  by
typing int the url int he browser.  The server gives me back The
Requested URL /<contextpath>/TopicView/test was not found on this
server .

If I add a menu that points to /TopicView/test , the server can now
find the url.  If I take away the menu from the sitemap, I can no
longer hit the view.  Same thing works for templates.  I had expected
by creating a view or a template I should just be able to hit the
appropriate URL and they would work.  What am I doing wrong?

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