Tapestry

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

            BlogJava :: 首頁(yè) :: 新隨筆 :: 聯(lián)系 :: 聚合  :: 管理 ::
            20 隨筆 :: 0 文章 :: 4 評(píng)論 :: 0 Trackbacks

          2007年8月3日 #

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

          2007年4月16日 #

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

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

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

          2007年4月11日 #

          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是一樣的效果只是實(shí)現(xiàn)的方式不一樣, 一個(gè)是存在cookie或url中另一個(gè)是存在http session中。

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

          2007年3月30日 #

               摘要: All interactive programs provide two basic functions: obtaining user input and displaying the results. Web applications implement this behavior using two HTTP methods: POST and GET respectively. This simple protocol gets broken when application returns web page in response to POST request. Peculiarities of POST method combined with idiosyncrasies of different browsers often lead to unpleasant user experience and may produce incorrect state of server application. This article shows how to design   閱讀全文
          posted @ 2007-03-30 23:03 Tapestry 閱讀(1640) | 評(píng)論 (0)編輯 收藏

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

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

          2007年3月22日 #

               摘要: 1. iframe所引用的頁(yè)面類(lèi)實(shí)現(xiàn)IExternalPage接口和activateExternalPage方法

          2. 持有iframe的頁(yè)面類(lèi)中實(shí)現(xiàn)一個(gè)getIframeRenderer方法:  閱讀全文
          posted @ 2007-03-22 19:05 Tapestry 閱讀(599) | 評(píng)論 (0)編輯 收藏

          2007年1月30日 #

          I've added a new screencast, this one showing off the use of the tapestry-simple Maven archetype to create a new project. It runs about five minutes and shows off how simple it is to get up and running.

          If you haven't built Tapestry 5 locally, you need to remember to add -DremoteRepositories=http://people.apache.org/repo/m2-snapshot-repository/ to the command line.

          I'm thinking about starting a vote to do a preview release of Tapestry 5, just to get the necessary JARs and archetypes into the general Maven repository.



          posted @ 2007-01-30 09:47 Tapestry 閱讀(247) | 評(píng)論 (0)編輯 收藏

          2007年1月29日 #

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

          要使用這個(gè)模式,不得不提到一個(gè)ILinkT4listener:
            閱讀全文
          posted @ 2007-01-29 18:56 Tapestry 閱讀(883) | 評(píng)論 (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 閱讀(690) | 評(píng)論 (0)編輯 收藏

          僅列出標(biāo)題  下一頁(yè)
          主站蜘蛛池模板: 繁昌县| 图木舒克市| 揭西县| 五指山市| 合江县| 马边| 九寨沟县| 昌邑市| 都昌县| 清远市| 都匀市| 曲麻莱县| 镇沅| 兰西县| 乡宁县| 曲周县| 张家口市| 五原县| 孝义市| 金秀| 和平县| 全椒县| 鄂伦春自治旗| 晋宁县| 禹城市| 任丘市| 彝良县| 抚远县| 庆云县| 绥江县| 新巴尔虎左旗| 建水县| 屯门区| 阳信县| 大关县| 淳化县| 沙雅县| 麦盖提县| 吉林市| 肇庆市| 仙桃市|