|
Also, how have people handled DataService responses?
Unlike RPC, DS has 4 events: result, fault, conflict and
message. Can't use the regular Responder interface in Cairngorm, so I created a
DataServicesResponder interface.
Dimitrios
Gianninas
RIA Developer
Optimal
Payments Inc.
From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of Dimitrios Gianninas Sent: Tuesday, July 11, 2006 9:05 PM To: [email protected] Subject: RE: [flexcoders] Cairngorm ServiceLocator and FDS
Glad to see I'm not crazy :) With this thread this
afternoon, I was like "oh ya, I still need to clean my DataServices code and put
it in the ServiceLocator". And then I started the work and was like, how is
this going to work, a DataService ain't so simple as RPC services. As you noted
below it is much more "smart" since it has properties like 'commitRequired' and
'mergeRequired'... in my app those property are binded to controls to provide
visual feedback to the user.
So my first thought was to wrap it in some class... like a
delegate, but seems redundant, so still thinking....
Dimitrios
Gianninas
RIA Developer
Optimal
Payments Inc.
From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of Steven Webster Sent: Tuesday, July 11, 2006 5:32 PM To: [email protected] Subject: RE: [flexcoders] Cairngorm ServiceLocator and FDS
Hey Mike,
So that's an interesting question you ask; our intention
for ServiceLocator is support for the RPC services in Flex ... at least that is
the heritage of the ServiceLocator from Flex 1.5, and that's how we've
personally been using it in Flex 2.
For the Flex Data Services apps that we're building, we're
still chewing around on a number of different approaches, and haven't yet
reached a conensus on what we consider "bestest-practice"; there are so many
different use-cases.
My instincts are that data services don't need to be
declared on the ServiceLocator, and that managed collections are more akin to
"intelligent model" objects; that if a command is used to manipulating a
model (via the model locator) onResult of an RPC call, it makes sense in the
data services world that a Command no-longer needs asynchronous result handlers,
but can instead optimistically manipulate a model (a collection with data
services) within the execute() method of a command. So a command still
updates the model, and binding notifies the view - so the "MVC" approach we
achieve in Cairngorm still holds.
This then begs the question of where you
define/create/initialise/etc your collections; is that the ServiceLocator, or is
it somewhere else. Jury is still out for me.
I'm as keen to hear your thoughts as you may be to hear
ours. It still "feels" right to me that the ServiceLocator remains "RPC
only", but I can be convinced with a good argument.
Thoughts ?
Steven
-- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
SPONSORED LINKS
YAHOO! GROUPS LINKS
|
- RE: [flexcoders] Cairngorm ServiceLocator and FDS Dimitrios Gianninas
- RE: [flexcoders] Cairngorm ServiceLocator and FDS Dimitrios Gianninas
- RE: [flexcoders] Cairngorm ServiceLocator and FDS Dimitrios Gianninas


