JDEV Studio Edition Version 12.1.3.0.0
(Build JDEVADF_12.1.3.0.0_GENERIC_140521.1008.S)
I would like to know the scope of the af:table 'var' attribute that refers to the current collection element.
As per the ADF Documentation, it says 'var' is
"Name of the EL variable used to reference each element of this collection. Once this component has completed rendering, this variable is removed (or reverted back to its previous value). "
Once the table component has completed rendering, this variable is removed or reverted back.
But, I am able to access current row values when I click a link in one of the table rows.
I am able to get the current row values on click of the link. The actionListener is a managed bean method that calls a methodAction binding .
The parameter values for the methodAction binding are defined like #{row.HeaderId} .
I tried clicking different row links and each time the #{row.HeaderId} is correctly passed to the method binding.
Is it a standard behavior across different versions or just introduced in 12C ?
As per my understanding, you can get current row values by using either
1) setPropertyListener and storing values in requestScope or other scopes and accessing later
2) using attributeBindings that point to the currentRow in the iterator by enabling rowSelection on the table
Thanks,
Vishnu