[flexcoders] Reoading a view from a viewstack

2009-04-18 Thread Wally Kolcz
My application uses a ToggleButtonBar with a viewstack as it's dataprovider. 
When the app is first loaded and each component is called in the stack, it 
loads the component and runs it's initApp() on the creationComplete. However 
when you go back it's already loaded and doesn't run the initApp() and pull new 
external data. 

Is there a way to automatically reload the component each time a generated 
button is pushed in the ToggleButtonBar? 




RE: [flexcoders] Reoading a view from a viewstack

2009-04-18 Thread Tracy Spratt
No, a rendered component is rendered and there is no way to 'reload it.  I
suppose you could use a Module or SWFLoader, but that is a heavy-duty
architectural change.

 

Duplicate the init functionality you need in a show event handler.

 

Tracy Spratt,

Lariat Services, development services available

  _  

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Wally Kolcz
Sent: Saturday, April 18, 2009 11:03 AM
To: Flexcoders@yahoogroups.com
Subject: [flexcoders] Reoading a view from a viewstack

 






My application uses a ToggleButtonBar with a viewstack as it's dataprovider.
When the app is first loaded and each component is called in the stack, it
loads the component and runs it's initApp() on the creationComplete. However
when you go back it's already loaded and doesn't run the initApp() and pull
new external data. 

Is there a way to automatically reload the component each time a generated
button is pushed in the ToggleButtonBar?