Tapestry

          記錄學習Tapestry專用布格格。很多文章都轉載網絡。

            BlogJava :: 首頁 :: 新隨筆 :: 聯系 :: 聚合  :: 管理 ::
            20 隨筆 :: 0 文章 :: 4 評論 :: 0 Trackbacks

          2007年4月11日 #

               摘要: tapestry的URL形如/examples/app?service=page/Admin
          能夠保證有效運行的一個非常重要的原因是,用有狀態的javabean代替無狀態的servlet構建一個tapestry應用。page是有狀態的,他只能在一個線程里為一個用戶處理一個 request,而一個servelet,沒有用戶的狀態,可以在并發線程中為任何數量同時發生的request提供服務。使用有狀態的page遇到的問題和使用數據庫的連接遇到的問題非常相似  閱讀全文
          posted @ 2007-08-03 17:39 Tapestry 閱讀(1100) | 評論 (0)編輯 收藏

          http://www.javaeye.com/t/4463.html

          <img jwcid="@Any" src="images/btn2.gif" onClick="ognl:yourScriptFun"/>

          posted @ 2007-04-16 08:41 Tapestry 閱讀(446) | 評論 (0)編輯 收藏

          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是一樣的效果只是實現的方式不一樣, 一個是存在cookie或url中另一個是存在http session中。

          client:page session:page 僅在當前頁面有用, 假如轉到其他頁面 這個屬性值就失效了。
          client:app session:app 對于整個application都有效, 轉到其他頁面再轉回來的話這個值仍然存在。如果我們想讓他失效怎么辦呢?你可以調用這個方法cycle.forgetPage("YourPageName").
          posted @ 2007-04-11 11:50 Tapestry 閱讀(518) | 評論 (0)編輯 收藏

          主站蜘蛛池模板: 屏东县| 沂源县| 涪陵区| 昆山市| 邢台县| 永城市| 临漳县| 新建县| 蒙城县| 宁海县| 上饶市| 光山县| 韶山市| 界首市| 阿拉善左旗| 天柱县| 咸丰县| 长泰县| 旅游| 天峨县| 肥东县| 巴林左旗| 迁西县| 高州市| 五大连池市| 禄丰县| 三门县| 灵山县| 盘山县| 方城县| 琼结县| 额尔古纳市| 万宁市| 唐海县| 凌海市| 东海县| 永州市| 平顶山市| 巫山县| 安仁县| 永定县|