摘要: 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 閱讀全文
03 2007 檔案
摘要: http://ralf-realman.javaeye.com/blog/post/144266 閱讀全文
摘要: Tapestry的rewind一直是學習和使用Tapestry的難點,rewind是用來處理表單提交的,表單默認使用的是 DirectService來提交。在詳細介紹之前,先說明下此文中需要用到的一些概念,首先是表單組件,我這里指的是指繼承自 AbstractFormComponent類的組件,例如:TextField、TextArea、Checkbox等,而不是具體的Form組件,表單組件使用時必須在Form組件中,這些組件在rewind時調用繼承自AbstractFormComponent的 rewindFormComponent來讀取數據,并將數據賦值給容器或者頁面。
我們來看一下最簡單的TextField組件,組件定義如下 閱讀全文
我們來看一下最簡單的TextField組件,組件定義如下 閱讀全文
摘要: 1. iframe所引用的頁面類實現IExternalPage接口和activateExternalPage方法
2. 持有iframe的頁面類中實現一個getIframeRenderer方法: 閱讀全文
2. 持有iframe的頁面類中實現一個getIframeRenderer方法: 閱讀全文