On Wednesday 06 December 2006 17:06, Brian Holmes wrote:
So I was wondering where and how other people are managing this kind of
logic.
Use a creationComplete event on each sub-view to fetch data for that view.
creationComplete only gets fired on the first show of a component.
--
Tom
Yeah, I understand the creation complete event, and it doesn't always
work for what I'm trying to accomplish. For data that's fairly static,
such as a list of departments that's used in a lot of different views, I
want to get the data once. I could do it at the top level,
mx:Application tag, but
Your plan sounds like a good one to me. For extra efficiency, you
might also want to keep track of what calls you have pending. For
instance, you may have issued a call to get the data but it has not
yet arrived. Just depends on how nice you want to be to your server.
Cheers,
Lach
On
For fairly static data that is bound to many different views, I only
want to go to the server when the data's not there.
I have an ArrayCollection that I bind to several different visual
components. Which visual components get built
depends on what permissions the user has. I want to make sure
4 matches
Mail list logo