`
tapestry
  • 浏览: 187039 次
社区版块
存档分类
最新评论
文章列表
1、hibernate3配置文件中<!-- Enable Hibernate's automatic session context management --><property name="current_session_context_class">thread</property>说明如下:The hibernate.current_session_context_class configuration parameter defines whichorg.hibernate.context.CurrentSessionContex ...
The Rename Type refactoring has been extended to rename variables and methods with names similar to the renamed type. Name matching can be configured with a new option dialog. There is also a new preview page which shows all affected elements. 不错的特性,省了不少麻烦!
一直等待tapestry4出rc版,昨天终于在邮件列表里看到开始投票了,今天上来满怀期待的想看到rc-1的释出,结果看到这个 Apache News Online里公布了这则新闻: 01 December 2005 - Jakarta Tapestry 4.0-beta-12 Now Available 下边是邮件列表截图和新闻截图
一、service的定义 1、概述 在hivemind中,一个service是一个简单的实现特定接口的对象,你可以提供此接口的核心实现,使用者可以通过实现此接口来覆盖你的实现。模块的定义可以包含<service-poit>元素来定义服务,一个模块可以包含任意多的服务。 2、创建模式 Service有四种创建模式:primitive(主要的)、singleton(单例的)、threaded(线程的)和pooled(池化的)。在primitive和singleton模式中,每一个服务最终只会生成一个实例。在threaded和pooled模式中,同时可能有多个实例,但是每个线程只会有一个实 ...
jimlaren's linuxblogdirver
You can call a static method using the syntax @class@method(args). Ifyou leave out class, it defaults to java.lang.Math, to make it easier tocall min and max methods. If you specify the class, you must give thefully qualified name.If you have an instance of a class whose static method you wish to cal ...
Application和Session范围对象的使用关于此特性的介绍请参考:http://jakarta.apache.org/tapestry/UsersGuide/state.html说明:Application和Session范围的概念就不说了,T4以前的版本只可以分别指定一个对象,以前版本的定义如下:<property name="org.apache.tapestry.visit-class" value="your.package.Visit"/><property name="org.apache.tapestry ...
关于此特性的介绍请参考:http://jakarta.apache.org/tapestry/current/UsersGuide/page-class.html 说明:通俗点说就是您可以不定义.page文件或者定义的.page文件中不指定class 属性,而让服务器自动根据.html文件的路径来寻找对应的类文件。 配置:在.application的定义文件中添加: <meta key="org.apache.tapestry.page-class-packages" value="org.edynasty.pages"/> 这样如果在文档根目 ...
tapestry4.0中使用hivemind作为微内核,Hivemind也是一个依赖注射的容器,其功能有一部分与spring重合,但spring 有良好的用户基础,所以使用hivemind访问spring中定义的bean是在tapestry中集成spring的关键,这个功能可以通过一个软件包实现,项目地址:http://sourceforge.net/projects/diaphragma/,下载tapestry- spring.jar包,放入系统类路径,就可以在页面和组件的定义中使用hivemind提供的注射功能访问spring中的bean定义。 hivemind.xml不需要做任何修改,但s ...
Tapestry4.0以前版本中的URL一直被人所诟病,当然现在已经有很多的解决方案,4.0版本中已经对此做了改进,因为现在的版本需要通过hivemind来配置,所以需要设置hivemind.xml中的一些属性,具体配置如下:<?xml version="1.0"?>  <module id="tapestry4" version="1.1.0"> <contribution configuration-id="tapestry.url.ServiceEncoders">  < ...
Tapestry本来提供的debug功能就十分强大,4.0版本中提供了更加详细的报错机制,可以显示错误的代码,并在报错的地方加亮标注,具体截图请看附件(谁能告诉我怎么将多余的照片删除呀)
三、Global Property Source(全局的消息属性配置)消息属性配置听起来不是很舒服,暂时这样称呼好了,消息属性配置也就是通称的国际化配置,通过配置一个properties文件使不同语言的浏览者看到对应语言的版本,一般的使用如下,一个page页面,例如example.page,同目录下放一个example.properties,在 example.html中使用<span key="key"/>来指定显示值,中文可以使用example_zh_CN.properties来配置。看起来挺方便的,可tapestry4.0以前的版本的国际化不支持全局的属性配 ...
二、listener method     如果使用过tapestry的应该知道listener方法在4.X以前版本中的定义,如public void formSubmit(IRequestCycle cycle),方法必须有一个IRequestCycle参数。参数的取得方式如下:Object[] parameters = cycle.getServiceParameters();     在4 ...
Global site tag (gtag.js) - Google Analytics