Forwarding...
Dimitrios Gianninas RIA Developer Optimal Payments Inc. -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Daniel Gasienica Sent: Tuesday, February 20, 2007 5:07 AM To: [EMAIL PROTECTED] Subject: Re: Cold Fusion/Cairngorm VO advice Actually, I have exactly the same questions. 1. For the master views I simply fetch a query from ColdFusion since I have up to 10'000 records. The result is then bound to a datagrid. This solution is blazing fast and works great. 2. For the detail views I fetch a strongly-typed VO from the server using ColdFusion and the Reactor ORM framework, although I am experiencing severe performance problems. I wanted to look into lazy-loading of data, but it seems to make the application logic unnecessarly complex. According to literature I've read the server is responsible for constructing the typed value objects. This makes sense to me, as the front-end should not worry about data serialization. However, what speaks against leveraging the currently common 1-2GHz computing power on the client? Another question I have is: How are value objects related to business objects? My client-side VO have additional business logic implemented. For me it is a bad 'smell', although I am not sure how to handle it differently without adding another (unnecessary) layer of abstraction... Would it be wise to pass value objects (in literature mostly referred to as data transfer objects (DTO)) between server and client and then attach them to 'smarter' business objects with additional logic? Regards, Daniel --- In flexcoders@yahoogroups.com, "ajudah987" <[EMAIL PROTECTED]> wrote: > > I am new to Cairngorm and Flex. Looking over the store example and > several others and they all seem to use Value Objects to pass and > define the data on the client. I have a lot of data and structures to > return to flex in my application. > > 1.Should i avoid returning data to Cairngorm via cfc queries and > return all my data on the server via defined VO's? Does this make > sense for simple data exchanges? > > 2.In Cairngorm what is the best way to pass a complex structure into > the app? For example I have products which belong to product owners > which are mapped to entitlements. Should i define these all as VO's > embedded inside each other? > > Thanks in advance for any advice, > > AJ > -- WARNING ------- This electronic message and its attachments may contain confidential, proprietary or legally privileged information, which is solely for the use of the intended recipient. No privilege or other rights are waived by any unintended transmission or unauthorized retransmission of this message. If you are not the intended recipient of this message, or if you have received it in error, you should immediately stop reading this message and delete it and all attachments from your system. The reading, distribution, copying or other use of this message or its attachments by unintended recipients is unauthorized and may be unlawful. If you have received this e-mail in error, please notify the sender. AVIS IMPORTANT -------------- Ce message électronique et ses pièces jointes peuvent contenir des renseignements confidentiels, exclusifs ou légalement privilégiés destinés au seul usage du destinataire visé. L'expéditeur original ne renonce à aucun privilège ou à aucun autre droit si le présent message a été transmis involontairement ou s'il est retransmis sans son autorisation. Si vous n'êtes pas le destinataire visé du présent message ou si vous l'avez reçu par erreur, veuillez cesser immédiatement de le lire et le supprimer, ainsi que toutes ses pièces jointes, de votre système. La lecture, la distribution, la copie ou tout autre usage du présent message ou de ses pièces jointes par des personnes autres que le destinataire visé ne sont pas autorisés et pourraient être illégaux. Si vous avez reçu ce courrier électronique par erreur, veuillez en aviser l'expéditeur.