Hey Marco, Could you use a separate IList for each view? I don't know how your implementation works -- but if it's using IViewCursor internally onto an ArrayCollection or some such, you shouldn't have much performance hit as they would all be pointing at the same underlying data...
Jules On Wed, Dec 3, 2008 at 10:13, Marco Catunda <[EMAIL PROTECTED]> wrote: > Hi Jules, > > Let me say about my problem. I've developed a class that implements > IList interface for implicit pageable > approach. This class works fine for one data provider of component. If > I use it in two or more components > the list become flicker. > > The problem of this flicker is when one component needs to get itens > which is different for other component. > The limit page in memory fill itens for one component, all components > will receive events collection > change, all components will refresh itens so the other component will > get other itens and this loop will work > forever. > > My solution was implement 'n' pages for 'n' components, but why could > I detect how many components is > using this object, the first idea was inspect a bindings? > > I saw a generated action script for binding, but I couldn't find out > any solution. I didn't figure out how it > works. There is some undocument API that I didn't understand. > > The idea of overrinding addEventListener don't work because the system > never calls removeEventListener, > so the pages which was created will never remove from memory. It is a > memory leak problem. > > I don't have any idea how Flex remove theses listeners. Maybe it is a > voodoo approach. :) > > Regards, > > On Tue, Dec 2, 2008 at 11:00 AM, Jules Suggate <[EMAIL PROTECTED]> > wrote: >> Hi Marco, first up you have to ask yourself why you want this feature? >> There may be another way to solve the problem. However, here's what I >> know of your specific question... >> >> Last time I checked (Flex 3 beta 2) there was no *official* way to >> inspect the bindings on a component at runtime. However, if you create >> a component with bindings and load it up at runtime, you will find >> there are undocumented properties that enable you to do this. Look for >> a "_watchers" array -- you will also find it helpful to keep the >> generated actionscript that the Flex compiler normally throws away so >> you can read how databinding is implemented. >> >> The properties above are not part of the public API, so could change >> at any time. In fact, IIRC some of the very binding properties I just >> mentioned may even have been deprecated in the final Flex 3 release... >> proceed with caution. >> >> Which is why I ask what the actual problem is you are trying to solve >> -- perhaps the list can help you come up with other ideas :-) >> >> For example, your idea of overriding addEventListener is cunning -- >> perhaps that solution can be explored further. >> >> Cheers, >> Jules >> >> On Tue, Dec 2, 2008 at 23:05, Marco Catunda <[EMAIL PROTECTED]> >> wrote: >>> Hi, >>> >>> I have a singleton class with model data provider (like cairngorm model). >>> >>> Some user interface components binding this model in data provider >>> property. >>> >>> I didn't find out any way to detect if there is binding in this model >>> or not, and >>> how many bindings. >>> >>> The binding model works with events, so my idea was override >>> addEventListener >>> in singleton model to detect binding. But it don't work because the >>> removeEventListener >>> isn't call when component go away. >>> >>> Does anyone has any tips? >>> >>> Regards >>> -- >>> Marco Catunda >>> >>> >> >> > > -- > Marco Catunda > >

