Now as far as I know and please correct me if I'm wrong, "View Models"
are part of the MVVM pattern and the're supposed to carry the state
and the behavior of the view. While in the MVC pattern the behavior of
the view is carried out by the controller.
So there is some kind of redundancy and inconsistency since if you put
the behavior in the "View Model" then you end up with controllers that
only delegate to the "View Models". And if you put the behavior in the
controller then you end up with the "View Models" only carrying state
and hence they're not "View Models" anymore but DTOs.
If you choose the first option, then controllers become redundant and
you might as well remove them and make the actions directly in the
ViewModels and end up with MVVM web framework because I think that's
what you guys are essentially doing.
To unsubscribe from this group, send email to fubumvc-deve...@googlegroups.com.
To unsubscribe from this group, send email to fubumvc-deve...@googlegroups.com.
Mark
On Mar 18, 2:09 pm, Duraid <dur...@gmail.com> wrote:
> Thanks Chad. I'm not sure I understand fully but I wanted to say that MVVM
> comes in 2 flavors View first and View Model first. Maybe the latter is
> related to what you talked about "Front Controller".
>
> > On Thu, Mar 18, 2010 at 8:56 AM, Jeremy D. Miller <jeremydmil...@yahoo.com
> > > wrote:
>
> >> It's a little bit of an overloading in terms. The ViewModel in most web
> >> MVC scenarios is just a dumb bag of data passed into the View for it to
> >> render in a single linear path. You could technically call it a DTO, but
> >> it's mostly about the role it plays in the interactions (the model for the
> >> view to render). MVVM (Presentation Model) is a *stateful* UI pattern
> >> connoting a long view lifecyle and is much more of a fit for WPF /
> >> Silverlight / WinForms. Some people will put limited logic into the web VM,
> >> but MVVM itself doesn't apply very well to the web world.
>
> >> And no, we are most definitely not building an MVVM framework.
>
> >> Jeremy D. Miller
> >> The Shade Tree Developer <http://codebetter.com/blogs/jeremy.miller>
> >> jeremydmil...@yahoo.com
>
> >> ------------------------------
> >> *From:* DaRage <dur...@gmail.com>
> >> *To:* FubuMVC Development Group <fubumv...@googlegroups.com>
> >> *Sent:* Thu, March 18, 2010 8:09:21 AM
> >> *Subject:* [fubumvc] FubuMVC or MVCVM?
> >> fubumvc-deve...@googlegroups.com<fubumvc-devel%2Bunsu...@googlegroups.com>
> >> .
> >> For more options, visit this group at
> >>http://groups.google.com/group/fubumvc-devel?hl=en.
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "FubuMVC Development Group" group.
> > To post to this group, send email to fubumv...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > fubumvc-deve...@googlegroups.com<fubumvc-devel%2Bunsu...@googlegroups.com>