This content has been marked as final.
Show 2 replies
-
1. Re: Update Data Model from another Bean
jacob.orshalick Dec 12, 2007 1:03 PM (in response to indyjones)You could use the event model provided by Seam. In the updateuser bean simply raise an event:
... public void updateUser() { ... Events.instance().raiseEvent("userUpdated", user); } ...
Listen for that event in a method in your getusers component:... @Observer("userUpdated") public void updateDataModel(User user) { // update the associated user in users2 } ...
Another option if you don't want to pass the user that was updated through the event, you could simply re-execute the factory method and use the @RaiseEvent annotation on the updateUser() method. Hope that helps. -
2. Re: Update Data Model from another Bean
indyjones Dec 12, 2007 3:03 PM (in response to indyjones)Very nice...
I am new to the Events model...
Thanks!!!
Indy