Re: [flexcoders] cairngorm convention: vo or model?

2009-08-07 Thread Muzak
. As already mentioned, I find Cairngorm has a few things backwards, so I threw together my own MVC thing. regards, Muzak - Original Message - From: Jorge Maiquez jmaiq...@yahoo.com To: flexcoders@yahoogroups.com Sent: Friday, August 07, 2009 7:21 AM Subject: RE: [flexcoders] cairngorm convention

RE: [flexcoders] cairngorm convention: vo or model?

2009-08-07 Thread Jorge Maiquez
Of Muzak Sent: 07 August 2009 11:12 To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] cairngorm convention: vo or model? I don't have a ModelLocator, just one or more Models :) but yes, that's what goes in the model package. I have my own MVC framework, based on Cairngorm and ARP. ARP

Re: [flexcoders] cairngorm convention: vo or model?

2009-08-07 Thread Pedro Sena
@yahoogroups.com flexcoders%40yahoogroups.com Subject: Re: [flexcoders] cairngorm convention: vo or model? I don't have a ModelLocator, just one or more Models :) but yes, that's what goes in the model package. I have my own MVC framework, based on Cairngorm and ARP. ARP is what I started out

RE: [flexcoders] cairngorm convention: vo or model?

2009-08-07 Thread Jorge Maiquez
Of Muzak Sent: 07 August 2009 11:12 To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com Subject: Re: [flexcoders] cairngorm convention: vo or model? I don't have a ModelLocator, just one or more Models :) but yes, that's what goes in the model package. I have my own MVC framework, based

Re: [flexcoders] cairngorm convention: vo or model?

2009-08-06 Thread claudiu ursica
Ultimately the data should be in the model, and the view binds to the model. However depending on your needs you could notify the view from the command using responders. Check the UM Cairngorm extensions for this. HTH, Claudiu From: Jorge Maiquez

RE: [flexcoders] cairngorm convention: vo or model?

2009-08-06 Thread Jorge Maiquez
to figure out whether I’m the only one who thinks it’s weird :-) From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of claudiu ursica Sent: 06 August 2009 14:23 To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] cairngorm convention: vo or model

Re: [flexcoders] cairngorm convention: vo or model?

2009-08-06 Thread claudiu ursica
: [flexcoders] cairngorm convention: vo or model? What about transient data? I was always under the impression that VO’s (or DTO’s or whatever they’re called) were more like throw-away objects: you use them to transfer data to/from a server, but that’s it. So if I label something as being

RE: [flexcoders] cairngorm convention: vo or model?

2009-08-06 Thread Jorge Maiquez
[mailto:flexcod...@yahoogroups.com] On Behalf Of claudiu ursica Sent: 06 August 2009 16:01 To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] cairngorm convention: vo or model? You are right, If your data is only transport stuff and then get rid of it it does not justify to put

Re: [flexcoders] cairngorm convention: vo or model?

2009-08-06 Thread claudiu ursica
: Jorge Maiquez jmaiq...@yahoo.com To: flexcoders@yahoogroups.com Sent: Thursday, August 6, 2009 6:42:16 PM Subject: RE: [flexcoders] cairngorm convention: vo or model? Ok, so if I’m understanding you correctly, you don’t have a problem storing a VO in some part of the model (assuming that the VO

RE: [flexcoders] cairngorm convention: vo or model?

2009-08-06 Thread Jake Churchill
, August 06, 2009 10:42 AM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] cairngorm convention: vo or model? Ok, so if I’m understanding you correctly, you don’t have a problem storing a VO in some part of the model (assuming that the VO is used for both transport and storage

RE: [flexcoders] cairngorm convention: vo or model?

2009-08-06 Thread Jorge Maiquez
To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] cairngorm convention: vo or model? Directory structure is just used for packaging. So, you keep all your views together. But when you think about it, views rarely contain their own data. Likewise, commands are in commands

Re: [flexcoders] cairngorm convention: vo or model?

2009-08-06 Thread Muzak
1) the class only transfers data to/from a server: postfix VO and put it in the vo folder I'm working with someone who does (1) even when the class is never sent across the wire. That's what I do as well. Doesn't matter if it's meant for transfering data to/from server or not. They

Re: [flexcoders] cairngorm convention: vo or model?

2009-08-06 Thread Muzak
- Original Message - From: Jorge Maiquez jmaiq...@yahoo.com To: flexcoders@yahoogroups.com Sent: Thursday, August 06, 2009 6:31 PM Subject: RE: [flexcoders] cairngorm convention: vo or model? @Claudiu in you model? It won't even be in you project structure. it will be from your libs where

RE: [flexcoders] cairngorm convention: vo or model?

2009-08-06 Thread Jorge Maiquez
[mailto:flexcod...@yahoogroups.com] On Behalf Of Muzak Sent: 06 August 2009 21:02 To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] cairngorm convention: vo or model? 1) the class only transfers data to/from a server: postfix VO and put it in the vo folder I'm working with someone who does

RE: [flexcoders] cairngorm convention: vo or model?

2009-08-06 Thread Jorge Maiquez
...@yahoogroups.com] On Behalf Of Muzak Sent: 06 August 2009 21:17 To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] cairngorm convention: vo or model? What if you have a class that is both a vo and a part of the model (the situation I mentioned in my original post)? Should you clone the vo

Re: [flexcoders] cairngorm convention: vo or model?

2009-08-06 Thread Muzak
] cairngorm convention: vo or model? don't belong in the model package though, that's where the model belongs, not data classes Erhm, then maybe I don't know what a model is :-) Say, I have a list of users. I would create a userList ArrayCollection and stick that into the model (bindable

RE: [flexcoders] cairngorm convention: vo or model?

2009-08-06 Thread Jorge Maiquez
: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Muzak Sent: 07 August 2009 03:14 To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] cairngorm convention: vo or model? Say, I have a list of users. I would create a userList ArrayCollection and stick that into the model