T4中树的例子代码   CstMtrlHeadTree.java是使用的例子。具体的详细信息带有时间后在详细的写一个文档。
1、html文件更改为tml 可以放在web-root下面2、模块的log更改为slf4j org.slf4j.Logger3、@Inject 更改到 org.apache.tapestry.ioc.annotions.Inject4、自定义组件里面要显示非定义参数要使用 @Inject private ComponentResources resources; this.resources.renderInformalParameters(writer);才可以显示InformalParameter (这个错误折磨了我好长一段时间才发现) 
in AppModule.javapublic static void contributeApplicationDefaults( MappedConfiguration<String, String> configuration) { configuration.add("tutor.file-system-root", "/Users/pbeshai/tmproot/"); configuration.add("tapestry.supported-locales", ...
T5 components was put in ${app-root}/components by defaultSuppose org.man.tapestry5.components will hold our newcomponents.1) add the following to AppModule public static voidcontributeComponentClassResolver(Configuration<LibraryMapping>configuration) { // Creates a virtual root paca ...
本人是根据tapestry官方文档和自己的理解而整理出来的。如果有什么不对的地方,请大家批评指正。 根据官方的说法,T5的page页面在第一访问后都放在了一个page pool中作为缓存,以方便其他用户的访问。页面的生存周期也很简单第一次访问 页面函数执行顺序如下:这是Tapestry 实例化当前页面。1、pageLoaded 在这里可以初始化一些页面公用的参数,这里的变量的值是给所有的请求共享的。2、pageAttached 把页面附加给当前的请求3、pagePassivate 这个方法可以传递页面之间的context详见:http://tapestry.apache.org/tapest ...