Tapestry

          記錄學習Tapestry專用布格格。很多文章都轉載網(wǎng)絡。

            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 僅在當前頁面有用, 假如轉到其他頁面 這個屬性值就失效了。
          client:app session:app 對于整個application都有效, 轉到其他頁面再轉回來的話這個值仍然存在。如果我們想讓他失效怎么辦呢?你可以調用這個方法cycle.forgetPage("YourPageName").
          posted on 2007-04-11 11:50 Tapestry 閱讀(518) 評論(0)  編輯  收藏 所屬分類: Tapestry
          主站蜘蛛池模板: 北流市| 迭部县| 喀喇沁旗| 会东县| 阿拉尔市| 临沂市| 肥西县| 灵台县| 张家港市| 库车县| 康保县| 宜阳县| 雅安市| 黔西县| 万山特区| 宜宾县| 葫芦岛市| 江都市| 应用必备| 凉城县| 洛浦县| 泸水县| 蓬溪县| 桐庐县| 西乡县| 菏泽市| 海伦市| 和田县| 同江市| 达孜县| 肥乡县| 宾川县| 德惠市| 获嘉县| 乌恰县| 哈巴河县| 安岳县| 鲁甸县| 文山县| 惠水县| 叙永县|