ADF – Selected value from SelectOneChoice Components
ADF – selected value from SelectOneChoice Components
In this article, I’ll discuss how to get Values from SelecrtOneChoise Component rather than index
Before we Start. you should know the Problem.
Case :
We have jspx page contains SelectOneChoise Component depend on List of value from DepartmentVO .
We need to return its value when the user changes the value of this Component.
The value must return DepartmentVO attributes .new and old value.
Problem :
When you try to get value direct with EL , The result will return the index of current row for DepartmentVO (List of Value ), when we need return real data.
Solution :
- Create new jspx page .
- Drag EmployeesVO as form.
- Create two inputText for new Value and Two inputText for old Value.
- Add custom code in backbean , ValueChangeListener property
- Set partial trigger property reference to soc1 (SelectOnceChoise Component)
- Set auto submit propriety for soc1