Re: [flexcoders] Best Practice for making sure you're displaying correct data

2010-06-22 Thread Alex Harui
Model-View or MVC.  If all UI widgets are bound to a data model, the should all 
update when the model is changed.


On 6/21/10 6:18 PM, libbychantel libbychan...@yahoo.com wrote:






Hello people

From time to time I run into this problem which makes me think I am doing 
something wrong: I have a popup window which receives data and constructs 
itself. It is reusable across several different windows. However, sometimes on 
subsequent popups, it shows data from the original popup. Should I be removing 
all children and forcing reconstruction each time, or something more along the 
lines of just setting dataproviders to null, that sort of thing? Is there a 
best practice for this sort of thing in flex?

Thanks,
Libby






--
Alex Harui
Flex SDK Team
Adobe System, Inc.
http://blogs.adobe.com/aharui


[flexcoders] Best Practice for making sure you're displaying correct data

2010-06-21 Thread libbychantel
Hello people

From time to time I run into this problem which makes me think I am doing 
something wrong: I have a popup window which receives data and constructs 
itself. It is reusable across several different windows. However, sometimes on 
subsequent popups, it shows data from the original popup. Should I be removing 
all children and forcing reconstruction each time, or something more along the 
lines of just setting dataproviders to null, that sort of thing? Is there a 
best practice for this sort of thing in flex?

Thanks,
Libby