[EMAIL PROTECTED] Mon Apr 05 13:22:00 2004
Return-Path: <[EMAIL PROTECTED]>
X-Sender: [EMAIL PROTECTED]
X-Apparently-To: [email protected]
Received: (qmail 533 invoked from network); 5 Apr 2004 18:51:34 -0000
Received: from unknown (66.218.66.172)
  by m13.grp.scd.yahoo.com with QMQP; 5 Apr 2004 18:51:34 -0000
Received: from unknown (HELO smtp-out6.blueyonder.co.uk) (195.188.213.9)
  by mta4.grp.scd.yahoo.com with SMTP; 5 Apr 2004 18:51:29 -0000
Received: from [192.168.0.9] ([82.41.16.63]) by smtp-out6.blueyonder.co.uk with 
Microsoft SMTPSVC(5.0.2195.5600);
  Mon, 5 Apr 2004 19:50:38 +0100
To: [email protected]
In-Reply-To: <[EMAIL PROTECTED]>
References: <[EMAIL PROTECTED]>
Content-Type: text/plain
Content-Transfer-Encoding: 7bit
X-Mailer: Ximian Evolution 1.0.8 (1.0.8-10) 
Date: 05 Apr 2004 19:52:02 +0100
Message-Id: <[EMAIL PROTECTED]>
Mime-Version: 1.0
Return-Path: [EMAIL PROTECTED]
X-OriginalArrivalTime: 05 Apr 2004 18:50:38.0346 (UTC) 
FILETIME=[E2FE5EA0:01C41B3E]
X-eGroups-Remote-IP: 195.188.213.9
From: Steven Webster <[EMAIL PROTECTED]>
Subject: Re: [flexcoders] Implementing a controller w/ command pattern
X-Yahoo-Group-Post: member; u=114339942
X-Yahoo-Profile: swebsteratiterationtwo

Hey Brian,

On Mon, 2004-04-05 at 17:40, Brian LeRoux wrote:
> Just curious how you would approach applying the Command 
> pattern as demoed in the iteration2 amazon ria in a Flex app. I'm
> thinking a Command should implement the MXMLObject interface, as well
> as ICommand, to access the view (and thus flash controls) but I'm not
> totally sure. Right track? Way off? You input is appreciated! :) 

Yeah, those crazy iteration::two guys, and their RIA design
patterns..... ;-)

You know, they're kinda working on another book right now,
called "Developing Rich Clients with Macromedia Flex", that
you'll find a bit more detail of at:

http://www.iterationtwo.com/news_100204.html

Chapter 21 I believe is about Flex and J2EE Integration, and
in there, we go through a re-implementation of the RIA patterns
we documented in the AS2.0 Dictionary, in the brave new world
of Flex.... :)

The good, and entirely off the record :) news, is that this
chapter is a candidate for being made available in the near
future as a trial download ... and when it does, we'll be
sure to let the list know.

In brief; nothing changes as far as the Command pattern is
concerned, you *can* still implement this alongside the
Controller class exactly the way we described in the AS2.0
dictionary.

The patterns that we've elected to implement a little
differently with MXML, are the Service Locator pattern
(because the RemoteObject and WebService tag do quite a
bit of the heavy lifting for us, and that places a new
requirement on how we handle pending calls returned
back from these data service calls), and the View Helper
strategy is a daily-discussion in our office at present,
as we flit between MXML and ActionScript 2.0 solutions.

I don't see that you'd gain anything extending MXMLObject,
or implementing that interface, in your command classes,
which should/could be ambivalent to whether you are using
Flex or plain-old-RIAs with Flash and Remoting.

Hold tight for that sample chapter, which was tech
reviewed by Mad Matt Chotin...and is on it's way back
to Alistair and I for final review as we speak...

Best wishes,

Steven

-- 
Steven Webster
Technical Director
iteration::two





Reply via email to