In the doList() method of the action, I need to add another iterator that should be populated by id of the exiting list (employee.employeeid)
I have already created a table in the database with this relationship. I have also got the service, model and dao to extract the data from the database by a given employeeid. But I am completely lost as to how and where to pass the employeeid parameter to populate the sub-list to generate the nested iterator.
Any ideas how to connect the nested list. This nested list is supposed to populate different form fields. For example, radio buttons, check boxes etc...
posted 5 years ago
Not sure if this is the best approach but it works so I am going to mark it as resolved...
Added the child list to the model:
and called the options within the while loop of the parent list: