Tapestry中页面池的作用和防止页面池带来的负效应

after using a page object
(e.g., the Result page object), Tapestry will not throw it away. Instead, it will put it into a pool for reuse (see the diagram
below). Later when it needs to use the Result page object again, it will check if the pool has one. If so, just take it out
from the pool and use it. Only when the pool has no such page object, will it create a new page object.

所以如果在一个新开的浏览器上面,页面上显示的参数不会发生改变,
防止这种情况的发生可以
在page-specification中加入
<property name="XXX">  XXX为页面上的变量
所以对应的页面为抽象的类 abstract,
对应的变量的get,set方法为abstract

posted on 2007-11-05 15:46 刘铮 阅读(245) 评论(0)  编辑  收藏 所属分类: Tapestry


只有注册用户登录后才能发表评论。


网站导航:
 
<2024年5月>
2829301234
567891011
12131415161718
19202122232425
2627282930311
2345678

导航

统计

留言簿(1)

文章分类(141)

文章档案(147)

搜索

最新评论