Thank you, one thing though. The expression: "MyView" :: _ didn't
convert into a Link object with directory listing true. So instead I
used:
Menu(Loc("MyView",new Link("MyView" :: Nil, true),"MyView"))
I thought that all the views were implicitly mapped to viewClass/
method. I understand now that i'll have to use the sitemap
cheers,
Michel
On Aug 17, 1:54 pm, "marius d." <[email protected]> wrote:
> Please add the path to your SiteMap.
>
> Menu(Loc("MyView", "MyView" :: _, "MyView"))
>
> Br's,
> Marius
>
> On Aug 17, 8:25 pm, Michel Klijn <[email protected]> wrote:
>
>
>
> > Hi,
>
> > I'm new to Lift and I've been fooling around with all it's cool
> > features.
>
> > At the moment, I'm trying to access MyView that I have defined in the
> > view package. When I try to access the view via the
> > URL:"http://localhost:8080/MyView/hi" I get the following message:
> > The requested page was not defined in your SiteMap, so access was
> > blocked.
>
> > According to the view chapter (3.7) in the book(Exploring Lift August
> > 12, 2009) I downloaded from Github, it should work this way.
>
> > I'm a bit lost... what is it that I'm doing wrong?
>
> > thanks,
>
> > Michel
>
> > P.S snippets,and comets do work
>
> > package net.mkl.zooloretto.view
> > import ...
> > class MyView extends LiftView{
>
> > override def dispatch = {
> > case "hi" => doRender _
> > }
>
> > def doRender () : NodeSeq = {
> > <lift:surround with="default" at="content">
> > <b>hai!</b>
> > </lift:surround>
>
> > }
>
> > }
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---