odo
未读,2011年5月17日 19:03:302011/5/17登录即可回复作者
登录即可转发
您无权在此群组中删除帖子
请登录以举报消息
要么此群组的电子邮件地址为匿名状态,要么您得查看成员电子邮件地址权限才能查看原始帖子
收件人 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