Thanx for reply, Steven.
It's correct but
1. Using this approach i'm loosing all advantages of flex data
binding, cause if i make decomposition (i did) of my view, binding to
specific property will be really painfull thing and has to be done by
hands.
2. What about different set of delegates for every view (depends on
server architecture)??
3. Don't u think that restriction and freedom seems different?

--- In flexcoders@yahoogroups.com, "Steven Webster" <[EMAIL PROTECTED]>
wrote:
>
> If I'm understanding this thread correctly, you have a component
> MyView.mxml that renders some data, we'll call it "myData".  You
want to
> have multiple instances of MyView.mxml that render different
instances
> of myData - eg myData1, myData2, myData3, etc.
>
> So I'm not sure why you can't manage:
>
> <view:MyView instanceSpecificData="{ ModelLocator.getInstance().
myData1
> }" />
> <view:MyView instanceSpecificData="{ ModelLocator.getInstance().
myData2
> }" />
> <view:MyView instanceSpecificData="{ ModelLocator.getInstance().
myData3
> }" />
>
> Cairngorm as an architecture is not trying to address how you
structure
> your view - we're leaving the developer complete flexibility to
> implement the view however they choose.  What you are citing as a
> restriction, is one of the degrees of freedom we are offering.
>
> I wouldn't be using ViewHelpers here at all, I'd be using the
> ModelLocator at an application level, holding data that different
views
> (whether they're multiple instances of the same view, or different
views
> altogether) are able to bind to and display.
>
> Steven
>
> --
> Steven Webster
> Practice Director (Rich Internet Applications)
> Adobe Consulting
> Westpoint, 4 Redheughs Rigg, South Gyle, Edinburgh, EH12 9DQ, UK
> p: +44 (0) 131 338 6108
> m: +44 (0) 7917 428 947
> [EMAIL PROTECTED]
>

>
> > -----Original Message-----
> > From: flexcoders@yahoogroups.com
> > [mailto:[EMAIL PROTECTED] On Behalf Of maxym.hryniv
> > Sent: 15 May 2006 15:47
> > To: flexcoders@yahoogroups.com
> > Subject: [flexcoders] Re: Cairngorm microarchitecture. 2
> > instances of view with different data.
>







--
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
Web site design development Computer software development Software design and development
Macromedia flex Software development best practice


YAHOO! GROUPS LINKS




Reply via email to