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

Matt Brailsford mpb at logicalminds.co.uk
Tue Mar 21 05:31:07 PST 2006


Hi Chris,

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.

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.

Matt

-----Original Message-----
From: Arp-bounces at ariaware.com [mailto:Arp-bounces at ariaware.com] On
Behalf Of Chris Velevitch
Sent: 21 March 2006 13:20
To: General List for Ariaware RIA Platform users and developers
Subject: Re: [Arp] The right way to use VO/TO's

On 3/18/06, Matt Brailsford <matt at gradiation.co.uk> wrote:
> You have explained an interesting example, and i can see why you have
> chosen to put some business logic within the view.
>
> I myself would see this as validation, as your application isn't
making
> any decisions upon the data, all it is doing is formating the data in
> such a way that the business layer requires it, no?

Yes, but also no. Yes it is formating the data and no that not all
it's doing. It's making the decision to accept or reject or modify
data based on what is being typed in. Validation it is, but isn't
validation the decision to accept or reject data to meet a business
requirement?

> With respects to data transfer, would you pass back the VO with the
> business logic back to the server, or did you create a seperate VO
with
> only the information your back end requires?

I don't understand the first part of your question. What do you mean
by 'pass...the business logic back ot the server'? As for the second
part of your question, I'm only passing the data the server requires.


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