Futurescale, Inc. PureMVC Home

The PureMVC Framework Code at the Speed of Thought

Over 10 years of community discussion and knowledge are maintained here as a read-only archive.

New discussions should be taken up in issues on the appropriate projects at https://github.com/PureMVC

Pages: [1]
Author Topic: Properties of views and manipulation  (Read 8849 times)
Helmut Granda
Full Member
Posts: 47

Flash Developer.

View Profile WWW Email
« 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?
Global Moderator
Hero Member
Posts: 2871

View Profile WWW Email
« Reply #1 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.

Pages: [1]