萧秋水的博客


带着淡淡的倦意,轻轻的忧惺,宛若远山含笑迷蒙,但又如闪电惊雷般震人心魄……

row.attributeName vs. row.bindings.attributeName - 转载

在ADF页面上有两种EL的引用af:tree,af:treeTable,af:table的数据集合的方式。一种是#{row.attributeName},另一种是#{row.bindings.attributeName.inputValue}。 这两者的区别是:前者是只读的 而后者是可读写的。前者这是将该属性以字符串的形式返回,该EL的返回值是一个String类型,后者则不同,#{row.bindings.attributeName}是一个Attribute Binding, 在运行时是一个FacesCtrlAttrsBinding 类的实例,该类是框架内部使用的类,继承了JUCtrlAttrsBinding。所以只要表格需要更新,就应该使用{row.bindings.attributeName.inputValue},另外一个例子是#{node.attributeName},node表示了树组件中的一个节点,可以对应到table组件的row。

posted on 2011-09-16 13:46 萧秋水 阅读(277) 评论(0)  编辑  收藏 所属分类: ADF


只有注册用户登录后才能发表评论。


网站导航: