odo
unread,May 17, 2011, 7:03:30 PM5/17/11Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Lift
Hi all,
at the moment i'm trying to write a little web application to learn
scala/lift.
Scala: 2.8.1
Lift: 2.3
I'm trying to generate some Links. One from Page 1 to Page 2 and vice
versa.
So i added this to my Sitemap definition:
Menu.i("First Page") / "/temp/firstPage",
Menu.i("Second Page") / "/temp/secondPage"
And create this snippet:
object LinkCheck {
private object currentVal extends RequestVar[String]("")
def listing = {
".link1 *" #> link("/temp/secondPage", () => currentVal("link1"),
Text("Link 1")) &
".link2 *" #> link("/temp/firstPage", () => currentVal("link2"),
Text("Link 2"))
}
}
The HTML page (/webapp/temp/firstPage.html) contains the following
code:
<span class="lift:LinkCheck.listing">
<div class="link1">LINK</div>
</span>
My Problem is that the webpages under /temp/ are not found via the
SHtml.link generated href.
Can some tell me what i'm doing wrong ?
All examples do not stores the html pages in a different directory and
access them via SHtml.link.
Thanks,
Oliver