On Thu, Dec 30, 2010 at 8:22 PM, David Pollak
<feeder.of...@gmail.com> wrote:
> Hot off the presses: http://stable.simply.liftweb.net/#toc-Chapter-3
>
I tried the example and I'm having some issues changing values for the
Sitemap section
I originally had:
object Param {
// Create a menu for /param/somedata
val menu = Menu.param[ParamInfo]("Param", "Param",
s => Full(ParamInfo(s)),
pi => pi.theParam) / "param"
lazy val loc = menu.toLoc
def render = "*" #> loc.currentValue.map(_.theParam)
}
It all works great there, but I was trying to change the url from
http://127.0.0.1:8080/param/bar
to
and I cannot come up with what I need to change to achieve this.
What I have found out so far by changing different values is that:
From
val menu = Menu.param[ParamInfo]("Param", "Param",
the second "Param" is the "name" that will appear on the Sitemap
I changed the first "Param but it does not seem to make any difference.
And if I change
param for "foo" in
pi => pi.theParam) / "param"
then I can no longer access
http://127.0.0.1:8080/param/bar
but this page does not load either
What am I doing wrong here?
> --
> Lift, the simply functional web framework http://liftweb.net
> Beginning Scala http://www.apress.com/book/view/1430219890
> Follow me: http://twitter.com/dpp
> Blog: http://goodstuff.im
> 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 lif...@googlegroups.com.
> To unsubscribe from this group, send email to
> liftweb+u...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/liftweb?hl=en.
>
--
Diego Medina
Web Developer
http://www.fmpwizard.com
I forgot to create the action foo.html page :)