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

The Oracle JDeveloper forum ranks in the Top 5 of the most active forums on the Oracle Technology Network (OTN).



The OTN Harvest blog is a summary of selected topics posted on the OTN Oracle JDeveloper forum.



It is an effort to turn knowledge exchange into an interesting read for developers who enjoy little nuggets of wisdom





Frank Nimphius

Search

Archives
« April 2014
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