Ticket #104 (closed enhancement: completed)
Support initializing beans using <event-bean> that have other beans as members
| Reported by: | jason.blum@… | Owned by: | kurtwiersma |
|---|---|---|---|
| Priority: | major | Milestone: | Mach-II 1.8.0 beta |
| Component: | framework - core | Version: | 1.8.0 - Framework |
| Keywords: | event-bean bean beans composition | Cc: | kurtwiersma, mattwoodward, brianfitzgerald, r.m.rogers@… |
| Blocking: | Blocked By: |
Description
Don't know if I've got my OOP terminology right, but the <event-bean> functionality is brilliant. But what if your form is updating fields corresponding to more than one bean, say a Person AND a Person.Supervisor (who, say, is also of type Person.)
Since your form fields can contain dots, would it be possible to, say, if the name of a form field is prefixed with the name of a member of the event-bean, go ahead and pass the event arg to the appropriate setters.
For example, am currently working on a form to update a person, and select that person's supervisor from a drop down list. So form passes the person's UUID and the UUID of a supervisor (who is also of type Person). I am currently using event-bean of person and manually adding the additional arg Person.Supervisor.uuid. But would be nice to just name those two fields uuid and supervisor.uuid.
