2008年7月10日 星期四

[備忘記]JBoss Developer Studio 無法載入 org.richfaces.renderkit.html.images.SpinnerButtonDown

org.richfaces.renderkit.html.images.SpinnerButtonDown
這個錯誤遇到兩次了

現在把它寫下來以免以後每次都要再從頭找一次解法(可見記憶力多不可靠...)

在匯入 richfaces 的 jar 檔時
要同時匯入以下三個檔案
richfaces-api-3.2.0.SR1.jar
richfaces-impl-3.2.0.SR1.jar(這就是SpinnerButtenDown的實作檔)
richfaces-ui-3.2.0.SR1.jar

不要只匯入 richfaces-ui-3.2.0.SR1.jar 而已......

[備忘記]JBoss Developer Studio 初始設定

進入 Window/preferences
1. General/Content Types:全部檔案類別的編碼都改為 UTF-8。
2.General/Editors/Text Editors:
 a.Displayed tab width 改為 2。
 b.Show line number 勾選。
3.General/Editors/Text Editors/Spelling:
 Dictionaries/Encoding 改為 UTF-8。
4.General/Keys:
 a.delete line 設定 Ctrl + D 範圍 In Windows。
 *找出自動完成並設定為 Alt + /。
5.General/Workspace:
 a.Text file encoding 改為 UTF-8。
 b.New text file line delimiter 改為 UTF-8。
6.Connectivity/Driver Definitions:
 在使用的資料庫內增加連線設定(記得下載該 JDBC jar 檔)。
7.Java/Build Path:
 修改 Source and output folder/Folder/Output folder name 為 classes。
8.Java/Code Style:
 勾選 Automatically add comments for new methods and types。
9.Java/Code Style/Clean Up:
 增加新的程式碼模版設定→pogi
 ‧Remove 'this' qualifier for non static method accesses
 ‧Change non static accesses to static members using declaring type
 ‧Change indirect accesses to static members to direct accesses (accesses through subtypes)
 ‧Convert for loops to enhanced for loops
 ‧Remove unused imports
 ‧Remove unused private methods
 ‧Remove unused private constructors
 ‧Remove unused private types
 ‧Remove unused private fields
 ‧Remove unused local variables
 ‧Add missing '@Override' annotations
 ‧Add missing '@Deprecated' annotations
 ‧Add missing serial version ID (generated)
 ‧Remove unnecessary casts
 ‧Remove unnecessary '$NON-NLS$' tags
 ‧Organize imports
 ‧Format source code
10.Java/Code Style/Code Templates:
 修改 Comments files
 /**
  * @建立者 ${user}
 * @建立時間 ${date} ${time}
  * @版權所有 ©Elitech 2008 - ${year}
  */
11.Java/Code Style/Formatter:
 增加新的格式化設定→pogi。
12.JBoss jBPM/Runtime Locations:
 增加新的來源 jBPM-runtime,用jbpm-jpdl-3.2.2。
13.JBoss Tools/Web/Seam:
 增加 Seam 2.0來源。
14.Web and XML:
 a.CSS Files/Creating files/Encoding 改為 UTF-8。
 b.HTML Files/Creating files/Encoding 改為 UTF-8。
 c.JSP Files/Creating files/Encoding 改為 UTF-8。
15.XDoclet:
 來源設為 1.2.3 版,並指定路徑。
16.Server / Installed Runtime:
 將 JBoss AS Server 的配置設定改為 All(這樣才會載入全部的 jar 檔)。