Hello,
> For this you can use loc.link.createPath. I use something similar in
> my codebase. This has a little cruft you may not be precisely
> interested in, but if you look at the link and flink methods, you
> should be able to get an idea of how to use the Loc.Link:
I'm using Link in a similar way to, but here I can't use createPath, as
SiteMap.findLoc(...) returns a Loc[_], so the type parameter is unknown, so
without some casts I won't be able to pass the parameter.
I tried:
val loc = SiteMap.findLoc("Login").open_!
val link = loc.link.createPath(loc.currentValue.open_!)
but unfortunately the compiler doesn't seem to recognize the fact that the type
parameter for loc is the same as the one returned for loc.currentValue.
--
Adam Warski
http://www.warski.org
http://www.softwaremill.eu
--
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.