[Tapestry5] 这个问题是什么原因啊?请高手们指点一下!

oliverswan 2007-10-07
Element <t:ActionLink> is in the Tapestry namespace, but is not a recognized Tapestry template element.

<html xmlns:t="http://tapestry.apache.org/schema/tapestry_5_0_0.xsd">
<head>
<title>hilo Start Page</title>
</head>
<body>
<p> I'm thinking of a number between one and ten ... </p>
<p>
<t:ActionLink>Start guessing</t:ActionLink>
</p>
</body>
</html>
moonfly2004 2007-10-09
你用的 T5.0.5?给出点详细的错误信息看看。
oliverswan 2007-10-09
<!--
<t:ActionLink>Start guessing</t:ActionLink>
-->
<a t:type="actionlink">Start guessing</a>

我把注释里面的内容换成下面的就可以了

但又出现下面的错误

org.apache.tapestry.ioc.internal.util.TapestryException

Element <t:if> is in the Tapestry namespace, but is not a recognized Tapestry template element.

我不知道是什么版本啊,就是按照官方的start guide用maven下的项目。
请帮我看看什么原因啊,谢谢啦!
moonfly2004 2007-10-10
把你的tapestry的jar文件换成 T5.0.5的看看
oliverswan 2007-10-12
谢谢LS的大哥,问题已经解决!哦 也!
oliverswan 2007-10-12
还有个问题呀,请问moonfly2004大哥如何在T5中实现树状菜单!
moonfly2004 2007-10-16
http://wiki.apache.org/tapestry/Tapestry5TreeComponent

这个就是T5的树。你自己修改修改吧。
oliverswan 2007-10-16
好的! 谢谢啊 moonfly 大哥!
oliverswan 2007-10-16
还有个问题呀 就是 T5里面 javascript脚本应该放在哪里啊?我放在WEB-INF下面 好像不行啊?
oliverswan 2007-10-16
难道放到web-inf下面的T5都认为是页面么?
Global site tag (gtag.js) - Google Analytics