gembin

OSGi, Eclipse Equinox, ECF, Virgo, Gemini, Apache Felix, Karaf, Aires, Camel, Eclipse RCP

HBase, Hadoop, ZooKeeper, Cassandra

Flex4, AS3, Swiz framework, GraniteDS, BlazeDS etc.

There is nothing that software can't fix. Unfortunately, there is also nothing that software can't completely fuck up. That gap is called talent.

About Me

 

我的评论

共2页: 上一页 1 2 
re: Infragistics的JSF组件 gembin 2008-03-12 13:43  
有IBM JSF extension的源码吗?
re: Strategy(策略)模式 gembin 2008-03-12 10:43  
请问这个UML图用什么画的
不是原创吧
照上面的代码我运行之后,为什么有如下错误
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: Eclipse精粹学习笔记 gembin 2008-03-05 16:47  
Eclipse精粹学习笔记 ?

题目和内容不太吻合把
把书的目录贴出来干嘛
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
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文件,他们必须同步
re: 关于服务端生成js的构思 gembin 2008-01-02 18:46  
如何动态生成JS并在客户端加载?

似乎第一次加载时往往有些JS不能被加载
re: Java Annotation手册 gembin 2007-12-29 17:45  
good
什么是微内核概念??
GGGGGGGGGGG
请点击这里下载本文的Eclipse工程]

无法下载+!

如何下载?

Gembin@gmail.com
gembin@gmail.com
就这么点。。。。。。早就知道了
WorkbenchWindow ww = (WorkbenchWindow) Activator.getDefault().getWorkbench().getActiveWorkbenchWindow();


不行,没有这个方法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
共2页: 上一页 1 2 

导航

统计

常用链接

留言簿(6)

随笔分类(440)

随笔档案(378)

文章档案(6)

新闻档案(1)

相册

收藏夹(9)

Adobe

Android

AS3

Blog-Links

Build

Design Pattern

Eclipse

Favorite Links

Flickr

Game Dev

HBase

Identity Management

IT resources

JEE

Language

OpenID

OSGi

SOA

Version Control

最新随笔

搜索

积分与排名

最新评论

阅读排行榜

评论排行榜

free counters