摘要: 1、windows->Preferences……打开"首选项"对话框,左侧导航树,导航到general->Workspace,右侧Text file encoding,选择Other,改变为UTF-8,以后新建立工程其属性对话框中的Text file encoding即为UTF-8.2、 windows->Preferences……打开"首选项"对话框,左侧导航树,导航到general->Content Types,右侧Context Types树,点开Text中每一颗子项,并在中输入"UTF-8",点upda 阅读全文
posted @ 2012-06-27 16:56 双面煎蛋 阅读(46754) 评论(0) 推荐(3) 编辑
摘要: ①getAttributes()得到这个UIComponent的属性集,在某些情况下是很方便的。也可以这样用:comp.getAttributes().put("value", "123");这就相当于 comp.setValue("123");②setValueExpression(String name, ValueExpression binding)其实在内部是把值计算出来后,再用getAttributes.put(name, bindingValue)赋值到name指定的属性去。模拟一下这个过程就是这样:this.getAt 阅读全文
posted @ 2012-06-27 13:46 双面煎蛋 阅读(643) 评论(0) 推荐(0) 编辑