X

The blog for hints & tips about Oracle Application Development Framework and Mobile Application Framework

  • ADFm
    August 5, 2011

row.attributeName vs. row.bindings.attributeName

Frank Nimphius
Master Principal Product Manager

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.

Be the first to comment

Comments ( 0 )
Please enter your name.Please provide a valid email address.Please enter a comment.CAPTCHA challenge response provided was incorrect. Please try again.