Tapestry

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

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

          Tapestry

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

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

          posted @ 2007-04-11 11:50 Tapestry 閱讀(517) | 評論 (0)  編輯

               摘要: http://ralf-realman.javaeye.com/blog/post/144266  閱讀全文
          posted @ 2007-03-30 22:43 Tapestry 閱讀(727) | 評論 (0)  編輯

               摘要: Tapestry的rewind一直是學習和使用Tapestry的難點,rewind是用來處理表單提交的,表單默認使用的是 DirectService來提交。在詳細介紹之前,先說明下此文中需要用到的一些概念,首先是表單組件,我這里指的是指繼承自 AbstractFormComponent類的組件,例如:TextField、TextArea、Checkbox等,而不是具體的Form組件,表單組件使用時必須在Form組件中,這些組件在rewind時調用繼承自AbstractFormComponent的 rewindFormComponent來讀取數據,并將數據賦值給容器或者頁面。
          我們來看一下最簡單的TextField組件,組件定義如下   閱讀全文
          posted @ 2007-03-30 22:32 Tapestry 閱讀(472) | 評論 (0)  編輯

               摘要: 1. iframe所引用的頁面類實現IExternalPage接口和activateExternalPage方法

          2. 持有iframe的頁面類中實現一個getIframeRenderer方法:  閱讀全文
          posted @ 2007-03-22 19:05 Tapestry 閱讀(597) | 評論 (0)  編輯

          posted @ 2007-01-30 09:47 Tapestry 閱讀(246) | 評論 (0)  編輯

               摘要: Tapestry中表單的提交有很多問題,刷新導致表單的重復提交、臭名昭著的dirty form warning、
          顯示不友好的URL等,這些都可以使用redirect-after-postpostredirectredirectredirectPagefriendlyUrlurl

          要使用這個模式,不得不提到一個ILinkT4listener:
            閱讀全文
          posted @ 2007-01-29 18:56 Tapestry 閱讀(881) | 評論 (1)  編輯

               摘要: The toolkit known as GWT is all about creating dynamic client side javascript widgets and applications. The intriguing part of the toolkit is that these "scripty" bits are written as normal Java source code and are transcoded by the GWT compiler into relatively small and efficient javascript code. A "hosted" environment is provided by the toolkit which embeds a browser where developers can load their GWT enabled pages during development. When a page is loaded into this embedded browser, the GWT   閱讀全文
          posted @ 2007-01-29 18:53 Tapestry 閱讀(689) | 評論 (0)  編輯

               摘要: Tapestry4初試小結 http://www.aygfsteel.com/mstar/archive/2005/08/28/11393.html
            閱讀全文
          posted @ 2007-01-29 18:49 Tapestry 閱讀(439) | 評論 (0)  編輯

          posted @ 2007-01-29 18:46 Tapestry 閱讀(563) | 評論 (0)  編輯

               摘要: http://gocom.primeton.com/blog/index.php?op=ViewArticle&articleId=206&blogId=23
          注意啦,Delegate堂而皇之地作為“一等公民”在C#中“直接支持”,而Tapestry這樣的Java社區的著名項目又“轉而采用”,給個理由先?  閱讀全文
          posted @ 2007-01-29 18:44 Tapestry 閱讀(343) | 評論 (0)  編輯

          posted @ 2007-01-29 18:33 Tapestry 閱讀(401) | 評論 (0)  編輯

               摘要: 介紹:Tapestry框架底層使用了Hivemind這個小巧的IOC容器,很多功能都有相應的配置文件。
          這些配置文件主要包括:service-point(服務點), implementation(服務實現),configuration-point(配置點)和contribution(配置實現)三個關鍵概念。
          其中,服務點定義了服務的接口與默認實現,implementation可以覆蓋服務點的默認實現,服務點ID和配置點ID在一個模塊中必須唯一。  閱讀全文
          posted @ 2007-01-29 18:26 Tapestry 閱讀(604) | 評論 (0)  編輯

          posted @ 2005-12-01 08:54 Tapestry 閱讀(371) | 評論 (0)  編輯

          Full Tapestry Archive

          主站蜘蛛池模板: 屏山县| 台北市| 辽阳县| 曲麻莱县| 扶绥县| 依安县| 威远县| 迁西县| 邛崃市| 正镶白旗| 虹口区| 榆中县| 西城区| 绥滨县| 万载县| 平远县| 嵩明县| 鹿邑县| 琼海市| 台江县| 凤凰县| 玉林市| 沂源县| 石狮市| 灌南县| 台东县| 广河县| 九龙县| 临泉县| 澎湖县| 炎陵县| 乌拉特前旗| 南平市| 盈江县| 新民市| 慈利县| 农安县| 黄梅县| 个旧市| 广河县| 洛南县|