[Arp] The right way to use VO/TO's

Chris Velevitch chris.velevitch at gmail.com
Tue Mar 21 06:06:49 PST 2006


On 3/22/06, Matt Brailsford <mpb at logicalminds.co.uk> wrote:
> I agree with your view on validation, it is technically deciding whether
> to accept the data or not, but I guess this is the necessary evil that
> is validation.

I think one tends to forget that business requirements/logic consists
of a number of parts: what type of data the system needs to handle,
how do display that data, how to send that data, where to send that
data, how to store it, etc.

> What I meant with my other question was, do you send the object that
> contains methods back to the server, or do you copy the data to an
> object that purely contains data? ie a transfer object.

I'm still not understanding. You seem to be saying that there is a
feature or mechanism that allows you send the AS2 class definition of
the instance with all the method code as well as the data across the
wire to the server, even though the server maybe Coldfusion or Java or
PHP, when that object arrives on the server, the server can then call
any of the methods of the AS2 class definition of the object instance
that is now on the server. If that's what you saying, I didn't know
you could do that. I'm using Flash Remoting calls to CFC methods
passing that data as arguments that are either simple types, or arrays
of plain AS2 dynamic objects which are mapped into the corresponding
types on the server by the server component of Flash Remoting or
that's how I understand it to work.


Chris
--
Chris Velevitch
Manager - Sydney Flash Platform Developers Group
www.flashdev.org.au



More information about the Arp mailing list