[Arp] The right way to use VO/TO's
Matt Brailsford
mpb at logicalminds.co.uk
Tue Mar 21 06:24:53 PST 2006
Hi Chris,
Although you didn't understand my question, I think you have kind of
answered it.
The point of a transfer object is that you would pass back an object to
the server that contains all the simple types within it, rather than a
list of arguments. That way, when you call the method on the remoting
service, it is not bound to particular arguments, as all it expects is a
transfer object.
So as you pass back an object, I was wondering if you were passing back
your full object, or a simplified object that only contains the data
that the remoting service is expecting.
However, it sounds like your not using VO's for data transfer anyway, so
that is probably where we are getting crossed wires.
Many thanks for your views never the less, you have definitely raised
some interesting points.
Matt
-----Original Message-----
From: Arp-bounces at ariaware.com [mailto:Arp-bounces at ariaware.com] On
Behalf Of Chris Velevitch
Sent: 21 March 2006 14:07
To: General List for Ariaware RIA Platform users and developers
Subject: Re: [Arp] The right way to use VO/TO's
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
_______________________________________________
Arp mailing list
Arp at ariaware.com
http://ariaware.com/mailman/listinfo/arp_ariaware.com
More information about the Arp
mailing list