原创 細說Form表單

細說 Form (表單) - Fish Li - 博客園 Fish Li 吾生也有涯,而知也無涯

原创 C語言中struct與union的區別

最近開始自學C語言,從最基礎部分的開始學起。今天看書的時候注意到了struct和union似乎很像,除了名字不同,看起來幾乎沒有區別。 既然C中定義了struct和union兩個關鍵字,那麼它們肯定是有區別的,在查了一些資料之後我

原创 結構體(struct) 的 sizeof 大小

C語言中,sizeof的Semantics(語義)如下:The sizeof operator yields the size (in bytes) of its operand, which may be an expressi

原创 Java 中正確使用 hashCode 和 equals 方法

在這篇文章中,我將告訴大家我對hashCode和equals方法的理解。我將討論他們的默認實現,以及如何正確的重寫他們。我也將使用Apache Commons提供的工具包做一個實現。 目錄: hashCode()和equals

原创 JSF 轉換與驗證

本月,Rizon Software 的 CTO Paul Tabor 應邀與我一道解除針對 JSF 的 FUD。在本文中,我們將介紹 JSF 轉換和驗證框架的概念,它比您所想的要容易使用得多,也靈活得多。 首先我們將介紹應用於 JSF

原创 rich:datatable和 rich:subtable區別

<rich:dataTable> 6.6.10.1. Description The component is meant for rendering tables. It allows choosing data from a

原创 JSF的commandButton、commandLink、outputLink用法小結

comanndButton和commandLink:  h:commandButton  可以提交表單,但不能傳遞參數  h:commandLink  可以提交表單,又能傳遞參數,但是以鏈接的形式展現  commandLink必須要在

原创 myeclipse->project->clean作用

**其實主要作用就是把編譯好的class等文件刪除,激活eclipse的自動編譯。 解決的問題就是,有時候你把代碼改了,但因爲一些未知的原因,eclipse的自動編譯沒有成功,導致運行結果不正常。 當你的工程出現一些莫名其妙的

原创 Content-Disposition 響應頭

Content-Disposition 屬性是作爲對下載文件的一個標識字段,在rfc2616 http://www.rfc-editor.org/rfc/rfc2616.pdf 章節19.5 Additional Feature

原创 Ajax提交與傳統表單提交的區別說明

Ajax提交是通過js來提交請求,請求與響應均由js引擎來處理,頁面不會刷新,用戶感覺不到實際上瀏覽器發出了請求。比如說我們希望網頁總是顯示最新的新聞,而又不想老是去點刷新按鈕,我們就可以用Ajax機制來實現。網上的客服軟件也是ajax請

原创 JBoss換項目的時候

將項目導入進來後: 1.將build.properties中的 jboss.home = C\:\\soft\\EnterprisePlatform-5.1.1.GA\\jboss-as jboss.domain =**** 地

原创 JSF的immediate屬性

f it isn't entirely clear yet, here's a summary, complete with real world use examples when they may be beneficial:

原创 h:commandbutton 和 h:commandlink 比較

There is no functional difference apart from the generated markup and the appearance. The<h:commandButton> generates

原创 JSF Converter介紹與使用

JSF提供Converter機制對用戶輸入,以及畫面輸出值進行變換。           JSF提供了一些默認的Converter實現,同時也提供了接口可以讓用戶實現自定義Converter。本文對JSF的Converter的原理機制,