我的評論
re: Infragistics的JSF組件 gembin 2008-03-12 13:43
有IBM JSF extension的源碼嗎?
re: Strategy(策略)模式 gembin 2008-03-12 10:43
請問這個(gè)UML圖用什么畫的
re: 自定義開發(fā)具有Ajax功能的JSF組件 gembin 2008-03-10 10:57
不是原創(chuàng)吧
re: 自定義開發(fā)具有Ajax功能的JSF組件 gembin 2008-03-10 10:50
照上面的代碼我運(yùn)行之后,為什么有如下錯(cuò)誤
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精粹學(xué)習(xí)筆記 gembin 2008-03-05 16:47
Eclipse精粹學(xué)習(xí)筆記 ?
題目和內(nèi)容不太吻合把
題目和內(nèi)容不太吻合把
re: JSF(JavaServer Faces)學(xué)習(xí)手冊-更新日志 gembin 2008-03-05 16:45
把書的目錄貼出來干嘛
re: 學(xué)習(xí)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:因?yàn)镵ey要求是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:因?yàn)镵ey要求是public static 的所以Inner Class必需是static
re: JAVA網(wǎng)頁瀏覽器 gembin 2008-02-29 16:12
Eclipse RCP 不錯(cuò)!
re: FCKeditor與JSF的整合 gembin 2008-02-26 16:06
gembin@gmail.com
強(qiáng)烈需要源碼阿,謝謝!!!!!!!!!!!!!!!!!!!!!
強(qiáng)烈需要源碼阿,謝謝!!!!!!!!!!!!!!!!!!!!!
re: AjaxFaces 1.0 released gembin 2008-02-24 21:40
網(wǎng)頁打不開阿,博主能發(fā)給我嗎,謝謝
re: 學(xué)習(xí)Eclipse NLS gembin 2008-01-26 15:31
Eclipse SRC里的: No need Localized String 1
可代替ResourceBundle,用來處理資源文件*.properties,效率更好,更方便,很好的擴(kuò)展性。
當(dāng)有Key沒定義,會get a compile error.
缺點(diǎn)是:必須維護(hù)2個(gè)文件1個(gè)Properties和1個(gè)Java文件,他們必須同步
可代替ResourceBundle,用來處理資源文件*.properties,效率更好,更方便,很好的擴(kuò)展性。
當(dāng)有Key沒定義,會get a compile error.
缺點(diǎn)是:必須維護(hù)2個(gè)文件1個(gè)Properties和1個(gè)Java文件,他們必須同步
re: 使用JavaCC做語法分析[轉(zhuǎn)] gembin 2008-01-09 11:55
re: 關(guān)于服務(wù)端生成js的構(gòu)思 gembin 2008-01-02 18:46
如何動(dòng)態(tài)生成JS并在客戶端加載?
似乎第一次加載時(shí)往往有些JS不能被加載
似乎第一次加載時(shí)往往有些JS不能被加載
re: Java Annotation手冊 gembin 2007-12-29 17:45
good
re: TPF插件管理框架功能、實(shí)現(xiàn)以及下載 gembin 2007-12-14 18:32
什么是微內(nèi)核概念??
re: 關(guān)于Tomcat虛擬主機(jī)域名的設(shè)置 gembin 2007-12-14 16:20
GGGGGGGGGGG
re: Developing Equinox/Spring-osgi/Spring Framework Web Application Part 1 - 顯示首頁 gembin 2007-11-19 10:58
請點(diǎn)擊這里下載本文的Eclipse工程]
無法下載+!
如何下載?
Gembin@gmail.com
無法下載+!
如何下載?
Gembin@gmail.com
re: 基于WEB的批量大文件上傳下載技術(shù)共享(含源代碼) gembin 2007-11-12 13:32
gembin@gmail.com
re: RCP經(jīng)典代碼集中營(整理添加中... ...) gembin 2007-10-25 11:21
就這么點(diǎn)。。。。。。早就知道了
re: 如何實(shí)現(xiàn)Eclipse上Coolbar右鍵的效果 gembin 2007-10-25 10:17
WorkbenchWindow ww = (WorkbenchWindow) Activator.getDefault().getWorkbench().getActiveWorkbenchWindow();
不行,沒有這個(gè)方法getWorkbench().
不行,沒有這個(gè)方法getWorkbench().
re: google Logo gembin 2007-10-23 17:36
草!NIUB A
re: 產(chǎn)生隨機(jī)密碼 gembin 2007-10-23 17:34
good
re: Ioc吵架 gembin 2007-09-30 15:08
Yes