自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(9)
  • 收藏
  • 关注

JSF 要点

 1. Beans are request scoped by default. One request one bean.  Managed beans typically have three parts1.  Bean properties (i.e, pairs of getter and setter methods) One pair for each inp...

2011-09-28 15:43:27 100

原创 Java Unicode 总结

Unicode 可以代表当年世界所有的字符!代码点其实就是某个字母相关联的数字,计算机世界上每个字符都有唯一的对应数字UTF-8,UTF-16是指编码标准方案,比如utf8,就是指一个字符用1-4个byte 进行表示!utf16是指一个字符用一到2 个 16位为单位的代码单元进行表示。其中有规定,如果用一个编码单元进行标识时,不能用U+D800 至 U+DFFF ...

2011-09-05 18:50:34 120

原创 Java 平台中的增补字符

Skip to ContentSunhttp://java.sun.com/developer/technicalArticles/Intl/Supplementary/index.html ArticleJava 平台中的增补字符...

2011-09-05 17:54:49 494

为什么有那么多的例子程序使用foo和bar作为函数名?

http://mail.python.org/pipermail/tutor/2000-March/001266.htmlpython.org的Dennis E. Hamilton解释了原因:Great question!I can’t remember when I first saw foo and bar used in examples...

2011-07-01 12:14:55 762 1

原创 Eclipse copy/paste not working (eclipse 复制粘帖出错)

I'm running Eclipse 3.5.1 in a virtual environment. And occasionally the copy/paste (either through the menu or Ctrl-C/Ctrl-V) stops working. Fortunately, I found a fix. In Window > Prefer...

2011-06-27 18:39:27 222

原创 JSF 生命周期 - JSF Liefcycle (2)

Add immediate="true" to UIInput and UICommandExtend the h:inputText as well as the h:commandButton in the test.jsp with immediate="true": ... <h:inputText binding="#...

2011-03-28 13:35:59 222

原创 JSF 生命周期 - JSF Liefcycle (1)

ZZ. Code depot of a Java EE developerListen and debug JSF lifecycle phasesThe JSF lifecycle will be explained and debugged here using the "poor man's debugging" app...

2011-03-25 18:26:08 139

原创 Java Effective 48 - 如果要求精确的答案,请避免使用float和double

float和double类型的主要设计目的是为了科学计算和工程计算。它们执行二进制浮点运算,这是为了在广域数值范围上提供较为精确的快速近似计算而精心设计的。然而,它们没有提供完全精确的结果,所以不应该被用于要求精确结果的场合。float和double类型对于货币计算尤为不合适.[code="java"]static void floatTest(){ Syste...

2011-01-31 14:08:04 126

Java Effective 49 基本类型优于装箱基本类型

1. 同一样比较,a,b 不相等!dentity comparision![code="java"]Integer a = new Integer(1);Integer b= new Integer(1);[/code]2. 当装箱基本类型引用为null时,进行自动拆箱时,将抛出java.lang.NullPointerException异常。[code="java"...

2011-01-31 13:53:08 80

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除