In most cases and in a "perfect" world, it can be avoided. But in some specific cases, it is very useful, especially to workaround some binding bugs...
In our app (a pretty complex one), we use as much as possible the Cairngorm ModelLocator and bindings. But we have some views that could not be configured by bindings or at initialization, so we are using cairngorm ViewHelpers to do that. In order to use viewHelpers, you have to be sure that the view has been instantiated. Deferred instantiation is not "always the way to go". So please, do not remove this option... ;) Benoit Hediard #affinitiz.com -----Message d'origine----- De : [email protected] [mailto:[EMAIL PROTECTED] De la part de Adam Dorritie Envoyé : mardi 31 octobre 2006 14:37 À : [email protected] Objet : Re: [flexcoders] JUST SAY NO to creationPolicy="all" ! On 10/30/06, Gordon Smith <[EMAIL PROTECTED]> wrote: > <rant> > I've never seen a case where it is necessary to push data into the controls before they exist. If you must put the data somewhere in the meantime, store it in data vars, which have none of the startup cost of a visual component, and then move it into the controls after they get created. > > </rant> I guess I'm wondering why, if there is apparently no use case for this "feature" and deferrred instantiation is "the way to go," it is included in the language at all. Is there never a case to use this option? -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ <*> Your email settings: Individual Email | Traditional <*> To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) <*> To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/

