1
我正在使用电梯框架工作。我从github.com下载了一个示例应用程序,并且正在尝试在其中添加更多行。我在的src/main/webapp的一个index.html的在电梯框架中添加更多页面和.scala类
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta content="text/html; charset=UTF-8" http-equiv="content-type" /> <title>Home</title></head>
<body class="lift:content_id=main">
<div id="main" class="lift:surround?with=default;at=content">
<h2>Welcome to your project!</h2>
<p>
<span class="lift:helloWorld.howdy">
Welcome to your Lift app at <span id="time">Time goes here</span>
</span>
</p>
</div>
</body>
</html>
我试图添加以下行它
<span class="lift:helloWorld.newHowdy">
Welcome to your Lift app at <span id="newTime"></span>
</span>
我在片段文件夹中的HelloWorld类写的newHowdy方法。但一个错误是显示在浏览器中一样, 错误处理代码段:helloWorld.newHowdy 原因:未找到方法 XML导致此错误:
我怎样才能解决这个问题?以及如何在代码片段中添加更多页面和.scala文件并从html页面访问它。提前预订
DEF你好= “#TIME *” #> date.map(_。的toString) DEF newHowdy = “#newTime *” #> “HII” 的ToString这是我的片断和
\t <跨度类= “电梯:helloWorld.howdy”> \t欢迎的随着时间的流逝这里 \t \t的 名称
是我的代码的一部分 – isc 2013-03-15 12:37:53