Tapestry中頁(yè)面池的作用和防止頁(yè)面池帶來(lái)的負(fù)效應(yīng)

          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.

          所以如果在一個(gè)新開(kāi)的瀏覽器上面,頁(yè)面上顯示的參數(shù)不會(huì)發(fā)生改變,
          防止這種情況的發(fā)生可以
          在page-specification中加入
          <property name="XXX">  XXX為頁(yè)面上的變量
          所以對(duì)應(yīng)的頁(yè)面為抽象的類 abstract,
          對(duì)應(yīng)的變量的get,set方法為abstract

          posted on 2007-11-05 15:46 劉錚 閱讀(258) 評(píng)論(0)  編輯  收藏 所屬分類: Tapestry

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

          導(dǎo)航

          統(tǒng)計(jì)

          留言簿(1)

          文章分類(141)

          文章檔案(147)

          搜索

          最新評(píng)論

          主站蜘蛛池模板: 南宫市| 屏山县| 怀来县| 桦川县| 衡水市| 五原县| 永嘉县| 婺源县| 芦溪县| 河曲县| 康平县| 墨竹工卡县| 郓城县| 铜山县| 惠水县| 大余县| 突泉县| 商河县| 天峻县| 平湖市| 南川市| 定日县| 洮南市| 峡江县| 德保县| 女性| 莱阳市| 那坡县| 城口县| 新丰县| 班玛县| 剑河县| 南江县| 五指山市| 澄江县| 定安县| 莱芜市| 收藏| 昭觉县| 莲花县| 芒康县|