That’s certainly a workable strategy, but from a design point of view the separate “tabs” (in reality a view stack but works on same principles) are really applications within their own right and I would like to be able include them just by passing their root mxml name. Also, children will be added at run time to the view stack using the create child method so I don’t want to have to defineall the required view helpers for applications that may not be loaded.

 

Looks like I will have to use the view locator 3 separate times in the execute, onResult and onFault methods…

 


From: Dimitrios Gianninas [mailto:[EMAIL PROTECTED]
Sent: 17 February 2005 16:00
To: [EMAIL PROTECTED]
Subject: RE: [flexcoders] Cairngorm and deferred instantiation

 

Hi,

 

Put the ViewHelper(s) at a higher level, I use TabNavigators and ViewStacks in several places in my UI, but I do not have a ViewHelper per tab/stack. Just one forthe whole bunch.

 

Jimmy Gianninas

Software Developer - Optimal Payments Inc.

 

 


From:Michael Herron [mailto:[EMAIL PROTECTED]
Sent: Thursday, February 17,2005 10:47 AM
To: [EMAIL PROTECTED]
Subject: [flexcoders] Cairngorm and deferred instantiation

Hi All

 

Apologies for the blank post. 

 

My problem is this:  When using a tab navigator/view stack or any other component that uses deferred instantiation, the required view helpers are not created at start up. That is, they are children of tab navigator and not loaded until required, i.e. until the user opens the required tab. When my commands are instantiated, they try to use the view locator to get the required view helpers. Of course, this causes problems. The only solutions I can see are:

 

·         Turn off deferred instantiation. Not an option I would like to use

·         Get the view helpers when required, in the execute, onResult and onFault methods, again not a nice option

 

Are there any other workarounds/solutions?

 

Cheers,

Mike

 



AVIS IMPORTANT

WARNING

Les informations contenues dans le present document et ses pieces jointes sont strictement confidentielles et reservees a l'usage de la (des) personne(s) a qui il est adresse. Si vous n'etes pas le destinataire, soyez avise que toute divulgation, distribution, copie, ou autre utilisation de ces informations est strictement prohibee. Si vous avez recu ce document par erreur, veuillez s'il vous plait communiquer immediatement avec l'expediteur et detruire ce document sans en faire de copie sous quelque forme.

The information contained in this document and attachments is confidential and intended only for the person(s) named above. If you are not the intended recipient you are hereby notified thatany disclosure, copying, distribution, or any other use of the information is strictly prohibited. If you have received this document by mistake, please notify the sender immediately and destroy this document and attachments without making any copy of any kind.




Reply via email to