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è)面為抽象的類(lèi) abstract,
          對(duì)應(yīng)的變量的get,set方法為abstract

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

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

          導(dǎo)航

          統(tǒng)計(jì)

          留言簿(1)

          文章分類(lèi)(141)

          文章檔案(147)

          搜索

          最新評(píng)論

          主站蜘蛛池模板: 华坪县| 女性| 柏乡县| 宝兴县| 永城市| 余江县| 崇礼县| 建阳市| 上杭县| 浦县| 遵义市| 吉木乃县| 铁岭县| 枣强县| 襄垣县| 白山市| 平乡县| 萨嘎县| 广南县| 长丰县| 梨树县| 措勤县| 栾川县| 镶黄旗| 乡城县| 内乡县| 称多县| 安远县| 延安市| 新泰市| 芦山县| 晋中市| 阳信县| 万源市| 鄂伦春自治旗| 清涧县| 涿鹿县| 壶关县| 定远县| 来安县| 威海市|