Let us use standard HR schema entities - Employees and Departments. The main trick is to add getter and setter methods into Employees entity bean for the departmentId (this will enable us to use departmentId in Employees entity). Below are main steps you need to follow when developing View layer:
- In the page definition file define methodAction for findAllDepartments. Define a methodIterator binded to findAllDepartments method definition and a table with two items - departmentId and departmentName
- Create af:selectOneChoice in af:column component as it is described in Steve Muench screencast
Sample application - SelectOneChoice.zip.
6 comments:
This was precisely the example I was looking for.
However instead of using forEach I only created a methodIterator for departments and then dropped deptId column from data control as a selectOneChoice. In the dialog that comes up I mapped deptId of base table with deptId of departmentIterator. But for some reason it does not show department name of current deptId in the row. Infact It shows blank value as if no Id has matched.
what might be the reason for that? Please guide
Hi,
I didnt used wizard when developing this sample. Its better to follow steps described in Steve Muench screencast and apply my hint to make it work with TopLink case.
Regards,
Andrejus
Not able download the sample ..please can you send me this sample
Hi,
Cant download exmple!
Could you please send me?
Thanks & Regards,
LZ
I am not able to download this sample zip. Can you please provide access to the old posts?
No, I don't have this app anymore - 10g ADF is too old. You should use 11g or 12c.
Andrejus
Post a Comment