<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Building a medium to large scale Flex App using Cairngorm (Part 2)</title>
	<atom:link href="http://www.gotripod.com/2008/06/08/building-a-medium-to-large-scale-flex-app-using-cairngorm-part-2/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.gotripod.com/2008/06/08/building-a-medium-to-large-scale-flex-app-using-cairngorm-part-2/</link>
	<description>We design &#38; build outstanding websites, desktop and mobile software applications</description>
	<lastBuildDate>Tue, 08 Nov 2011 22:37:47 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: [Fx] Creating list of links using &#60;mx:Repeater&#62; &#171; RKDspot</title>
		<link>http://www.gotripod.com/2008/06/08/building-a-medium-to-large-scale-flex-app-using-cairngorm-part-2/comment-page-1/#comment-809</link>
		<dc:creator>[Fx] Creating list of links using &#60;mx:Repeater&#62; &#171; RKDspot</dc:creator>
		<pubDate>Mon, 29 Jun 2009 05:11:07 +0000</pubDate>
		<guid isPermaLink="false">http://clockobj.co.uk/?p=104#comment-809</guid>
		<description>[...] this object was a VO (&#8221;value object&#8221;, or &#8220;Data Transfer Object&#8221;&#8230; this article has a good explanation), but for this demo its just a standard object with properties [...]</description>
		<content:encoded><![CDATA[<p>[...] this object was a VO (&#8221;value object&#8221;, or &#8220;Data Transfer Object&#8221;&#8230; this article has a good explanation), but for this demo its just a standard object with properties [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Johan</title>
		<link>http://www.gotripod.com/2008/06/08/building-a-medium-to-large-scale-flex-app-using-cairngorm-part-2/comment-page-1/#comment-805</link>
		<dc:creator>Johan</dc:creator>
		<pubDate>Thu, 12 Jun 2008 21:12:13 +0000</pubDate>
		<guid isPermaLink="false">http://clockobj.co.uk/?p=104#comment-805</guid>
		<description>Code did not post - trying again:

&lt;mx:State name=&quot;appStateLoggedIn&quot;&gt;

&lt;mx:State name=&quot;{SessionModel.APP_STATE_LOGGED_IN}&quot;&gt;</description>
		<content:encoded><![CDATA[<p>Code did not post &#8211; trying again:</p>
<p>&lt;mx:State name=&#8221;appStateLoggedIn&#8221;&gt;</p>
<p>&lt;mx:State name=&#8221;{SessionModel.APP_STATE_LOGGED_IN}&#8221;&gt;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Johan</title>
		<link>http://www.gotripod.com/2008/06/08/building-a-medium-to-large-scale-flex-app-using-cairngorm-part-2/comment-page-1/#comment-801</link>
		<dc:creator>Johan</dc:creator>
		<pubDate>Thu, 12 Jun 2008 21:10:18 +0000</pubDate>
		<guid isPermaLink="false">http://clockobj.co.uk/?p=104#comment-801</guid>
		<description>You set the view states like this:



I think it should be referring to the constants



However this means you would have to import the SessionModel class in the  view - does it not make more sense just to set the view state constants in the ModelLocator?</description>
		<content:encoded><![CDATA[<p>You set the view states like this:</p>
<p>I think it should be referring to the constants</p>
<p>However this means you would have to import the SessionModel class in the  view &#8211; does it not make more sense just to set the view state constants in the ModelLocator?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jon</title>
		<link>http://www.gotripod.com/2008/06/08/building-a-medium-to-large-scale-flex-app-using-cairngorm-part-2/comment-page-1/#comment-797</link>
		<dc:creator>Jon</dc:creator>
		<pubDate>Tue, 10 Jun 2008 19:33:11 +0000</pubDate>
		<guid isPermaLink="false">http://clockobj.co.uk/?p=104#comment-797</guid>
		<description>You are quite right, ideally with an MVC solution, we wouldn&#039;t want domain knowledge creeping into our view. This can be overcome by using a Presentation layer between the view and the model. Basically each view has a modifier and the view databinds to properties in a modifier class which could just be references to the model. We specify the modify in the MXML tag for the view component (I have also heard of situations where all modifiers are defined in the top most container and passed down how you implement is up to you really and what works for your project). We can design our modifierers in such a way (using interfaces or inheritence) so that we can swap out the modifier for another one if needed, reusing the view. The other advantage of using a presentation layer like this is that view related code can also go in the modifier making it easier to unit test. There are many ways to do a presentation layer but I hope that gives you an idea. It sounds like this solution would also work with PureMVC.</description>
		<content:encoded><![CDATA[<p>You are quite right, ideally with an MVC solution, we wouldn&#8217;t want domain knowledge creeping into our view. This can be overcome by using a Presentation layer between the view and the model. Basically each view has a modifier and the view databinds to properties in a modifier class which could just be references to the model. We specify the modify in the MXML tag for the view component (I have also heard of situations where all modifiers are defined in the top most container and passed down how you implement is up to you really and what works for your project). We can design our modifierers in such a way (using interfaces or inheritence) so that we can swap out the modifier for another one if needed, reusing the view. The other advantage of using a presentation layer like this is that view related code can also go in the modifier making it easier to unit test. There are many ways to do a presentation layer but I hope that gives you an idea. It sounds like this solution would also work with PureMVC.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tech Per</title>
		<link>http://www.gotripod.com/2008/06/08/building-a-medium-to-large-scale-flex-app-using-cairngorm-part-2/comment-page-1/#comment-793</link>
		<dc:creator>Tech Per</dc:creator>
		<pubDate>Tue, 10 Jun 2008 18:40:24 +0000</pubDate>
		<guid isPermaLink="false">http://clockobj.co.uk/?p=104#comment-793</guid>
		<description>I know Cairngorm examples databind directly from the view and into the model, as you show. But do you like that way of doing it? Tying the view and the model tightly?

I ask because I recently did a post on the subject, &lt;a href=&quot;http://www.techper.net/2008/06/09/patterns-of-gui-architecture-in-cairngorm-and-puremvc/&quot; rel=&quot;nofollow&quot;&gt;comparing Cairngorm and PureMVC to see how they apply patterns in the View-part of MVC&lt;/a&gt;.

What is your opinion on the subject?</description>
		<content:encoded><![CDATA[<p>I know Cairngorm examples databind directly from the view and into the model, as you show. But do you like that way of doing it? Tying the view and the model tightly?</p>
<p>I ask because I recently did a post on the subject, <a href="http://www.techper.net/2008/06/09/patterns-of-gui-architecture-in-cairngorm-and-puremvc/" rel="nofollow">comparing Cairngorm and PureMVC to see how they apply patterns in the View-part of MVC</a>.</p>
<p>What is your opinion on the subject?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jon</title>
		<link>http://www.gotripod.com/2008/06/08/building-a-medium-to-large-scale-flex-app-using-cairngorm-part-2/comment-page-1/#comment-789</link>
		<dc:creator>Jon</dc:creator>
		<pubDate>Tue, 10 Jun 2008 07:45:06 +0000</pubDate>
		<guid isPermaLink="false">http://clockobj.co.uk/?p=104#comment-789</guid>
		<description>Hi Fernada,

This is hard to quantify and very much depends on your app. If you app is very simple i.e. a flex powered widget that displays content, or even some slightly more complex apps such as a project browser that simply displays information and makes very basic calls to get data to display would probably more candidates for Easy MVC. Cairngorm requires a fair bit of up front investment creating all these classes etc which pays off once you have at least 5 or more commands. But this is my opinion and really you need to think about how big the app could grow in the future. I hope that helps.</description>
		<content:encoded><![CDATA[<p>Hi Fernada,</p>
<p>This is hard to quantify and very much depends on your app. If you app is very simple i.e. a flex powered widget that displays content, or even some slightly more complex apps such as a project browser that simply displays information and makes very basic calls to get data to display would probably more candidates for Easy MVC. Cairngorm requires a fair bit of up front investment creating all these classes etc which pays off once you have at least 5 or more commands. But this is my opinion and really you need to think about how big the app could grow in the future. I hope that helps.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Fernanda Gomez</title>
		<link>http://www.gotripod.com/2008/06/08/building-a-medium-to-large-scale-flex-app-using-cairngorm-part-2/comment-page-1/#comment-785</link>
		<dc:creator>Fernanda Gomez</dc:creator>
		<pubDate>Tue, 10 Jun 2008 02:25:49 +0000</pubDate>
		<guid isPermaLink="false">http://clockobj.co.uk/?p=104#comment-785</guid>
		<description>Thanks for the article, I have a question, what size of app do you recommend using Cairngorm?</description>
		<content:encoded><![CDATA[<p>Thanks for the article, I have a question, what size of app do you recommend using Cairngorm?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jon</title>
		<link>http://www.gotripod.com/2008/06/08/building-a-medium-to-large-scale-flex-app-using-cairngorm-part-2/comment-page-1/#comment-781</link>
		<dc:creator>Jon</dc:creator>
		<pubDate>Sun, 08 Jun 2008 21:24:26 +0000</pubDate>
		<guid isPermaLink="false">http://clockobj.co.uk/?p=104#comment-781</guid>
		<description>Hi Rodrigo,

How are you binding to the item in the array collection? Flex will not update the binding if you bind to an arraycollection element using the following:

&lt;code&gt;&lt;mx:Label text=&quot;{array[1]}&quot; /&gt;&lt;/code&gt;

you need to use the getItemAt method, i.e.

&lt;code&gt;&lt;mx:Label text=&quot;{array.getItemAt(1)}&quot;/&gt;&lt;/code&gt;

Also make sure you remember to make the arraycollection bindable.

i.e.

[Bindable]
var array : ArrayCollection;</description>
		<content:encoded><![CDATA[<p>Hi Rodrigo,</p>
<p>How are you binding to the item in the array collection? Flex will not update the binding if you bind to an arraycollection element using the following:</p>
<p><code>&lt;mx:Label text="{array[1]}" /&gt;</code></p>
<p>you need to use the getItemAt method, i.e.</p>
<p><code>&lt;mx:Label text="{array.getItemAt(1)}"/&gt;</code></p>
<p>Also make sure you remember to make the arraycollection bindable.</p>
<p>i.e.</p>
<p>[Bindable]<br />
var array : ArrayCollection;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rodrigo Reyes</title>
		<link>http://www.gotripod.com/2008/06/08/building-a-medium-to-large-scale-flex-app-using-cairngorm-part-2/comment-page-1/#comment-777</link>
		<dc:creator>Rodrigo Reyes</dc:creator>
		<pubDate>Sun, 08 Jun 2008 19:48:13 +0000</pubDate>
		<guid isPermaLink="false">http://clockobj.co.uk/?p=104#comment-777</guid>
		<description>Hi. Excelente article. Right now I just coded my first small Flex project (no Cairngorm so far) from scratch and I had some trouble binding an ArrayCollection item returned from a Remote Object operation to a PopUp Window Form. Any ideas on how to accomplish that? I know your article is about something else, but I have tried to look for help at the forums with no luck so far and seems like you already have some good experience in Flex.
Thanx in advance...</description>
		<content:encoded><![CDATA[<p>Hi. Excelente article. Right now I just coded my first small Flex project (no Cairngorm so far) from scratch and I had some trouble binding an ArrayCollection item returned from a Remote Object operation to a PopUp Window Form. Any ideas on how to accomplish that? I know your article is about something else, but I have tried to look for help at the forums with no luck so far and seems like you already have some good experience in Flex.<br />
Thanx in advance&#8230;</p>
]]></content:encoded>
	</item>
</channel>
</rss>
<!-- Quick Cache: failed to write cache. The cache/ directory is either non-existent ( and could not be created ) or it is not writable. -->
