Tapestry

          記錄學(xué)習(xí)Tapestry專用布格格。很多文章都轉(zhuǎn)載網(wǎng)絡(luò)。

            BlogJava :: 首頁 :: 新隨筆 :: 聯(lián)系 :: 聚合  :: 管理 ::
            20 隨筆 :: 0 文章 :: 4 評論 :: 0 Trackbacks
          from http://dengyin2000.javaeye.com/blog/47452


          a) @Persist("client")
          b) @Persist("client:page")
          c) @Persist("client:app")

          a) is the same as b). If you use b) for a property x for page Foo, then
          you can get back the property only if the navigation is Foo => Foo. If the
          navigation is Foo => Bar => Foo, then it will be lost when Bar is
          invoked. In contrast, if you use c), then it will be maintained all
          the way.

          client 跟 session是一樣的效果只是實現(xiàn)的方式不一樣, 一個是存在cookie或url中另一個是存在http session中。

          client:page session:page 僅在當(dāng)前頁面有用, 假如轉(zhuǎn)到其他頁面 這個屬性值就失效了。
          client:app session:app 對于整個application都有效, 轉(zhuǎn)到其他頁面再轉(zhuǎn)回來的話這個值仍然存在。如果我們想讓他失效怎么辦呢?你可以調(diào)用這個方法cycle.forgetPage("YourPageName").
          posted on 2007-04-11 11:50 Tapestry 閱讀(518) 評論(0)  編輯  收藏 所屬分類: Tapestry
          主站蜘蛛池模板: 响水县| 定西市| 阳曲县| 祥云县| 华阴市| 霍林郭勒市| 新巴尔虎右旗| 二连浩特市| 赤壁市| 巴马| 景谷| 柞水县| 康保县| 临漳县| 深泽县| 庆城县| 道孚县| 漯河市| 宁陵县| 青田县| 深泽县| 理塘县| 南溪县| 湖口县| 论坛| 会同县| 霍州市| 旺苍县| 桦南县| 武隆县| 如东县| 东兰县| 五台县| 资阳市| 太保市| 太湖县| 长汀县| 尉氏县| 定陶县| 织金县| 眉山市|