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

          <2025年7月>
          293012345
          6789101112
          13141516171819
          20212223242526
          272829303112
          3456789

          導航

          統計

          留言簿(1)

          文章分類(141)

          文章檔案(147)

          搜索

          最新評論

          主站蜘蛛池模板: 湖北省| 宝鸡市| 奎屯市| 百色市| 石城县| 五大连池市| 平南县| 泸西县| 墨江| 南投市| 新河县| 石家庄市| 遂宁市| 昌乐县| 杭州市| 句容市| 镇赉县| 宁城县| 万全县| 阳泉市| 宜昌市| 平遥县| 贡觉县| 嵊泗县| 温宿县| 布拖县| 泗水县| 阜宁县| 清远市| 奇台县| 五原县| 岑溪市| 西和县| 库伦旗| 老河口市| 宁蒗| 葫芦岛市| 安图县| 铅山县| 阳新县| 泰州市|