PureMVC Architects Lounge

Announcements and General Discussion => General Discussion => Topic started by: samer_sadek on March 31, 2008, 07:04:08



Title: PopUp and DataProvider Issue
Post by: samer_sadek on March 31, 2008, 07:04:08
Hello,
I am facing this strange behavior with a popup. I have an application that
pops a new window, and when the user clicks on a button in that popup, it
goes and gets some data from the database, then the mediator updates the
dataProvider of a combobox and calls the function combobox.open().  The
issue is if the user opens and closes the window 2 or 3 times, there are 2
or 3 data providers on top of each other. To see this clearly,  open a
popup, and move it somewhere, then close it, do this 2 or 3 times, every
time moving the popup window somewhere different on the screen, then press
the getdata button, you will see the strange behavior attached in the screen
shot. I am not sure if I am doing something wrong or is this a pureMVC issue
or a flex issue. I created a simple project (attached) demoing that issue.


Title: Re: PopUp and DataProvider Issue
Post by: Rhysyngsun on April 16, 2008, 09:58:07
Samer,

Sorry I didn't catch your post earlier.

The first thing I noticed is that you are using an older version of PureMVC, you can download the latest version here:

http://puremvc.org/component/option,com_wrapper/Itemid,144/

You can view release notes here to see what code changes you need to make to incorporate the update:

http://trac.puremvc.org/PureMVC_AS3/wiki/ReleaseNotes

I updated your app on my copy, and I don't get the same problems, so I would suggest updating and see if that resolves the issue.


Title: Re: PopUp and DataProvider Issue
Post by: samer_sadek on April 25, 2008, 06:40:55
Thanks,
I will try that.