This content has been marked as final. Show 4 replies
Think of it as an adf editable table in the page with two rows where -
using switcher component i have my 2 rows displayed as -
row1.column1 = select one choice (ui row component is select one choice because row1.column2 is null)
row2.column1 = input text field (ui row component is input text because row2.column2 is not null)
All i need to find out is (on Update/Commit) once the user selects one choice from drop down or enters text field i want to dynamically get the values of column1 from either select one choice or input text based on the column2 condition?
Since the select one choice has a different binding from input text how do i get the value dynamically?
an attribute can be exposed as a select list or as an attribute binding (its not forbidden to create two bindings for the same attribute). This means that if you submit the select one choice component, the attribute binding displays the updated value in which case you access it from
AttribiteBinding aBinding = (AttribiteBinding) bindings.get(attribute_binding_name);
Object value = aBinding.getInputValue();
as you are switching between an input text field (that uses an attribute binding) and a select box (if model driven, this uses a list binding), you can always read the value from the attribute binding. This however works only for the current selected row