row.attributeName vs. row.bindings.attributeName

ADF uses two different types of EL to reference the binding layer in af:tree, af:treeTable and af:table components.

For example, if a table is read-only, using af:outputText to render the table column values, the cell values are referenced as #{row.attributeName}. If the table is editable, the EL is #{row.bindings.attributeName.inputValue}.

In the case of #{row.attributeName}, the value object is of type String.

In the case of #{row.bindings.attributeName.inputValue}, the value object is of type, FacesCtrlAttrsBinding, an internal class that extends JUCtrlAttrsBinding, which implements AttributeBinding. This object is updateable and allows changing column cell data through its inputValue property.

Another example is #{node.attributeName}, which is used as a value reference in read-only tree components. "node" and "row" are EL variables defined on the tree or table component variable property.

Comments:

Post a Comment:
Comments are closed for this entry.
About

A blog on Oracle JDeveloper, ADF, MAF, MCS and other mobile and web topics inspired by questions and answers posted on the OTN forums.



Frank Nimphius

Search

Archives
« September 2015
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today