[flexcoders] Re: Are Events OK in the MVC (S) pattern

2007-03-29 Thread Paul DeCoursey
--- In flexcoders@yahoogroups.com, shaun etherton [EMAIL PROTECTED] wrote: Troy Gilbert wrote: On 3/27/07, shaun etherton [EMAIL PROTECTED] wrote: Troy Gilbert wrote: Brett, Events are actually an a pretty fundamental component of an MVC implementation. Events are most often

Re: [flexcoders] Re: Are Events OK in the MVC (S) pattern

2007-03-29 Thread Troy Gilbert
After a bit more research, I realized that what I was doing was what Martin Fowler calls Anemic Domain Model, i.e. it's just plain-old-data with no behavior/logic. Following his arguments I totally agree, it's really wasting the potential of the data model by taking that route. You end up (like

Re: [flexcoders] Re: Are Events OK in the MVC (S) pattern

2007-03-29 Thread shaun etherton
Paul DeCoursey wrote: [snip] Yes the model knows nothing about the controller, but the model can only tell the view the data has changed. Here is one scenario where the controller would need to know about the change as well. If the view needs to change to a different view based on the new

[flexcoders] Re: Are Events OK in the MVC (S) pattern

2007-03-26 Thread lostinrecursion
Brett, You can read about this in more detail on any website which discusses the pattern but I will try and simplify it here for you. I highly recommend also trying out Cairngorm (A Flex MVC framework) even if only to better understand the concepts. If your view is firing events, the events are