我的評論
re: Infragistics的JSF組件 gembin 2008-03-12 13:43
有IBM JSF extension的源碼嗎?
re: Strategy(策略)模式 gembin 2008-03-12 10:43
請問這個UML圖用什么畫的
re: 自定義開發具有Ajax功能的JSF組件 gembin 2008-03-10 10:57
不是原創吧
re: 自定義開發具有Ajax功能的JSF組件 gembin 2008-03-10 10:50
照上面的代碼我運行之后,為什么有如下錯誤
SEVERE: Exception in PhaseListener RESTORE_VIEW(1) afterPhase
java.lang.NullPointerException: No component found under specified client id: j_id_jsp_1270516925_2
at com.sterning.jsf.ajax.AjaxListener.handleAjaxRequest(AjaxListener.java:60)
at com.sterning.jsf.ajax.AjaxListener.afterPhase(AjaxListener.java:42)
SEVERE: Exception in PhaseListener RESTORE_VIEW(1) afterPhase
java.lang.NullPointerException: No component found under specified client id: j_id_jsp_1270516925_2
at com.sterning.jsf.ajax.AjaxListener.handleAjaxRequest(AjaxListener.java:60)
at com.sterning.jsf.ajax.AjaxListener.afterPhase(AjaxListener.java:42)
re: 《JavaServer Faces編程/JavaServer Faces Programming》讀后感 gembin 2008-03-05 16:50
我暈,怎么貼的都是書的目錄和一些....信息
給人感覺像賣書的
給人感覺像賣書的
re: Eclipse精粹學習筆記 gembin 2008-03-05 16:47
Eclipse精粹學習筆記 ?
題目和內容不太吻合把
題目和內容不太吻合把
re: JSF(JavaServer Faces)學習手冊-更新日志 gembin 2008-03-05 16:45
把書的目錄貼出來干嘛
re: 學習Eclipse NLS gembin 2008-03-05 11:57
是可以的。請看如下例子:
message.properties
------------------
key_1=Say {0} hello to {1} !!
key_2=Say {0} hello to {1} !!
key3=Say {0} hello to {1} !!
key4=Say {0} hello to {1} !!
TobeBindedMsg.java
---------------------
public class TobeBindedMsg {
public static String key3;
static class InnerMsg{
public static String key4;
}
}
TestNLS.java
------------------
import org.eclipse.osgi.util.NLS;
public class TestNLS {
private static final String BUNDLE_NAME = "com.meccala.blog.util.message"; //$NON-NLS-1$
public static String key_2;
static {
NLS.initializeMessages(BUNDLE_NAME, TestNLS.class);
NLS.initializeMessages(BUNDLE_NAME, Inner.class);
NLS.initializeMessages(BUNDLE_NAME, TobeBindedMsg.class);
NLS.initializeMessages(BUNDLE_NAME, TobeBindedMsg.InnerMsg.class);
}
static class Inner {
public static String key_1;
}
public static void main(String ggg[]) {
String s = NLS.bind(Inner.key_1, "1", "gembin");
System.out.println(s);
String s1 = NLS.bind(TestNLS.key_2, "2", "gembin");
System.out.println(s1);
String s2 = NLS.bind(TobeBindedMsg.key3, "3", "gembin");
System.out.println(s2);
String s3 = NLS.bind(TobeBindedMsg.InnerMsg.key4, "4", "gembin");
System.out.println(s3);
}
}
最后的輸出:
Say 1 hello to gembin !!
Say 2 hello to gembin !!
Say 3 hello to gembin !!
Say 4 hello to gembin !!
NOTE:因為Key要求是public static 的所以Inner Class必需是static
message.properties
------------------
key_1=Say {0} hello to {1} !!
key_2=Say {0} hello to {1} !!
key3=Say {0} hello to {1} !!
key4=Say {0} hello to {1} !!
TobeBindedMsg.java
---------------------
public class TobeBindedMsg {
public static String key3;
static class InnerMsg{
public static String key4;
}
}
TestNLS.java
------------------
import org.eclipse.osgi.util.NLS;
public class TestNLS {
private static final String BUNDLE_NAME = "com.meccala.blog.util.message"; //$NON-NLS-1$
public static String key_2;
static {
NLS.initializeMessages(BUNDLE_NAME, TestNLS.class);
NLS.initializeMessages(BUNDLE_NAME, Inner.class);
NLS.initializeMessages(BUNDLE_NAME, TobeBindedMsg.class);
NLS.initializeMessages(BUNDLE_NAME, TobeBindedMsg.InnerMsg.class);
}
static class Inner {
public static String key_1;
}
public static void main(String ggg[]) {
String s = NLS.bind(Inner.key_1, "1", "gembin");
System.out.println(s);
String s1 = NLS.bind(TestNLS.key_2, "2", "gembin");
System.out.println(s1);
String s2 = NLS.bind(TobeBindedMsg.key3, "3", "gembin");
System.out.println(s2);
String s3 = NLS.bind(TobeBindedMsg.InnerMsg.key4, "4", "gembin");
System.out.println(s3);
}
}
最后的輸出:
Say 1 hello to gembin !!
Say 2 hello to gembin !!
Say 3 hello to gembin !!
Say 4 hello to gembin !!
NOTE:因為Key要求是public static 的所以Inner Class必需是static
re: JAVA網頁瀏覽器 gembin 2008-02-29 16:12
Eclipse RCP 不錯!
re: FCKeditor與JSF的整合 gembin 2008-02-26 16:06
gembin@gmail.com
強烈需要源碼阿,謝謝!!!!!!!!!!!!!!!!!!!!!
強烈需要源碼阿,謝謝!!!!!!!!!!!!!!!!!!!!!
re: AjaxFaces 1.0 released gembin 2008-02-24 21:40
網頁打不開阿,博主能發給我嗎,謝謝
re: 學習Eclipse NLS gembin 2008-01-26 15:31
Eclipse SRC里的: No need Localized String 1
可代替ResourceBundle,用來處理資源文件*.properties,效率更好,更方便,很好的擴展性。
當有Key沒定義,會get a compile error.
缺點是:必須維護2個文件1個Properties和1個Java文件,他們必須同步
可代替ResourceBundle,用來處理資源文件*.properties,效率更好,更方便,很好的擴展性。
當有Key沒定義,會get a compile error.
缺點是:必須維護2個文件1個Properties和1個Java文件,他們必須同步
re: 使用JavaCC做語法分析[轉] gembin 2008-01-09 11:55
re: 關于服務端生成js的構思 gembin 2008-01-02 18:46
如何動態生成JS并在客戶端加載?
似乎第一次加載時往往有些JS不能被加載
似乎第一次加載時往往有些JS不能被加載
re: Java Annotation手冊 gembin 2007-12-29 17:45
good
re: TPF插件管理框架功能、實現以及下載 gembin 2007-12-14 18:32
什么是微內核概念??
re: 關于Tomcat虛擬主機域名的設置 gembin 2007-12-14 16:20
GGGGGGGGGGG
re: Developing Equinox/Spring-osgi/Spring Framework Web Application Part 1 - 顯示首頁 gembin 2007-11-19 10:58
請點擊這里下載本文的Eclipse工程]
無法下載+!
如何下載?
Gembin@gmail.com
無法下載+!
如何下載?
Gembin@gmail.com
re: 基于WEB的批量大文件上傳下載技術共享(含源代碼) gembin 2007-11-12 13:32
gembin@gmail.com
re: RCP經典代碼集中營(整理添加中... ...) gembin 2007-10-25 11:21
就這么點。。。。。。早就知道了
re: 如何實現Eclipse上Coolbar右鍵的效果 gembin 2007-10-25 10:17
WorkbenchWindow ww = (WorkbenchWindow) Activator.getDefault().getWorkbench().getActiveWorkbenchWindow();
不行,沒有這個方法getWorkbench().
不行,沒有這個方法getWorkbench().
re: google Logo gembin 2007-10-23 17:36
草!NIUB A
re: 產生隨機密碼 gembin 2007-10-23 17:34
good
re: Ioc吵架 gembin 2007-09-30 15:08
Yes