PureMVC Architects Lounge

Announcements and General Discussion => Getting Started => Topic started by: Helmut Granda on September 27, 2009, 12:11:55



Title: Properties of views and manipulation
Post by: Helmut Granda on September 27, 2009, 12:11:55
When creating views that have different properties that will be manipulated, in the purist point if view will the proper way to hold and manipulate this properties will be proxy/vo? or would it be just ok with doing it directly from the mediator/view?


Title: Re: Properties of views and manipulation
Post by: puremvc on September 27, 2009, 08:08:45
If a view component has 5 properties frip, frop, zip, zop, and plunk, then instead of having the view component's Mediator know and set all these properties, it's often easier to have a value object zoid that contains frip, frop, zip, zop, and plunk properties. This way the Mediator needs only to set the zoid property of the view component. It is also nice if a service needs to deal with these properties, the vo is a way of wadding up a bunch of related data and tossing it back and forth across the tiers of your app.

-=Cliff>