Category Archives: 工作

記錄工作時候,有關的東西

Richfaces 4 calender does not show after re-render

Spent three hours to investigate……shitty stuff Experienced in richfaces 4.0 final popup may not show up once the content is being re-render. This is client side issue, which richfaces does not clean out all the events bind to its component. Quick fix: Override and patch richfaces calendar.js step 1: copy the original calendar.js to src/main/webapp/resources/org.richfaces/calendar.js… Read More »

JSF2 生成link button

方案1: 這會生成一堆javascript及訪問jsf engine. 不好用. 方案2 (使用一般h:outputlink): 這個會生成錯誤的html code, 因為會自帶生成onclick=”generated javascript”. 與有沖突. (最佳)方案3 (使用h:button自帶的action): 會自帶生成onclick=”window.href.location=’target.html’” 方案4: 自己動手寫HTML, 但要注意contextpath及不能直接使用jsf的navigation engine

URL及URI的分別

      URI期下有URL及URN。URL只是URI的一個小組。一個URI可以是URN,而不是URL http://en.wikipedia.org/wiki/Uniform_Resource_Identifier http://stackoverflow.com/questions/176264/whats-the-difference-between-a-uri-and-a-url                    

Category: Web

Flex 學習資料總匯

Flex的其中一個賣點是RIA,用戶的顯示介面 及 互動佔了很大比重! flex的component就像網頁中的html, 決定如何顯示內容(及甚麼內容) 要學會Flex.要先了解Component的生命周期 http://weblog.mrinalwadhwa.com/wp-content/uploads/2009/06/flex-4-component-lifecycle.pdf 要了解Flex可以做甚麼,可以參考tour de flex. adobe的展示平台 http://www.adobe.com/devnet-archive/flex/tourdeflex/web/ 以及sdk中的features spec. http://opensource.adobe.com/wiki/display/flexsdk/Developer+Documentation   flex相關的blog http://www.brooksandrus.com/blog/?s=FLEX&x=0&y=0 http://ticore.blogspot.com/search/label/Flex http://flex4jiaocheng.com/ http://flexponential.com/ (blog from adobe employee) http://nondocs.blogspot.com (secret in flex 3) http://ghalex.com/blog/category/flex http://blog.flexdevelopers.com/ http://blog.flexexamples.com/ (another flex blog from adobe employee)    

Continuous Integration

Intro. (Chinese walkthrough) http://www.josephj.com/entry.php?id=251 PHP & CI Continuous Integration and PHP from Arno Schneider Hudson http://hudson-ci.org/

install and apply ant-contrib in build.xml (windows)

1. to install the ant-contrib you have to put the ant-contrib.jar to ${ANT_HOME}/lib 2. to apply the ant-contrib, you have to import it first put following in the tag   3. usually execute ant with following commands: @echo off set ANT_HOME=D:\eclipse\plugins\org.apache.ant_1.7.1.v20090120-1145 call “%ANT_HOME%\bin\ant.bat” -f buildModules.xml Final. a simple solution is to install winant.