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 劉錚 閱讀(258) 評論(0)  編輯  收藏 所屬分類: Tapestry

          <2025年5月>
          27282930123
          45678910
          11121314151617
          18192021222324
          25262728293031
          1234567

          導航

          統計

          留言簿(1)

          文章分類(141)

          文章檔案(147)

          搜索

          最新評論

          主站蜘蛛池模板: 虹口区| 抚松县| 临沧市| 新乡市| 黄山市| 开阳县| 拜泉县| 锡林郭勒盟| 东乡| 阿荣旗| 澄城县| 麻栗坡县| 册亨县| 绍兴市| 平阳县| 新营市| 仁寿县| 平和县| 城固县| 海丰县| 哈密市| 海门市| 正安县| 花莲市| 伊金霍洛旗| 明星| 永春县| 赫章县| 玛沁县| 时尚| 河北区| 阳原县| 呼玛县| 海门市| 浦东新区| 黎城县| 饶阳县| 肃北| 赤水市| 洪江市| 梁山县|