Ok excellent, changing from Array to ArrayCollection has solved the
problem. Lesson learned :)

thanks for the help.

--- In [email protected], "calisza" <[EMAIL PROTECTED]> wrote:
>
> I've been wondering about that and am in the process of testing this.
> Will let you know what happens :).
> 
> Just noticed a typo in my previous post - should read product.images
> and not product.VO
> 
> 
> --- In [email protected], "jack_freud" <jack_web@> wrote:
> >
> > Could it be that you need to use an ArrayCollection rather than an
> > array? I think binding to Array only shows changes if the array itself
> > is replaced, not its items.
> > 
> > Jack
> > 
> > --- In [email protected], "calisza" <barry@> wrote:
> > >
> > > The dataProvider is a property of a Cairngorm VO.
> > > So, I have a productVO, of which images is a property (Array),
so the
> > > dataProvider is product.VO - the thing is, the dataProvider IS being
> > > updated, its just the display that's not being displayed. As
soon as I
> > > select another product, and then switch back to the product in
> > > question, or if I scroll up and then down in the TileList
itself, the
> > > newly uploaded image appears.
> > > 
> > > thanks,
> > > Barry
> > > 
> > > --- In [email protected], "Tracy Spratt" <tspratt@> wrote:
> > > >
> > > > Are you using the dataPrvoider API to update the dataProvider? 
> > What is
> > > > the dataProvider?
> > > > 
> > > > Tracy
> > > > 
> > > >  
> > > > 
> > > > ________________________________
> > > > 
> > > > From: [email protected]
> > [mailto:[EMAIL PROTECTED] On
> > > > Behalf Of calisza
> > > > Sent: Thursday, July 10, 2008 2:56 PM
> > > > To: [email protected]
> > > > Subject: [flexcoders] Tilelist, ItemRenderer not refreshing when
> > > > updating dataProvider
> > > > 
> > > >  
> > > > 
> > > > I have the following scenario,
> > > > 
> > > > I have a tilelist displaying images, each of which is being
created
> > > > via a custom ItemRenderer.
> > > > 
> > > > So far so good. 
> > > > 
> > > > Now, I have an upload button, which when clicked, pops-up a
> > > > TitleWindow and allows the user to add files for upload. They
click
> > > > upload and everything works perfectly, files get sent to server,
> file
> > > > gets saved and server sends back an XML response which I then
use to
> > > > update the TileList ItemRenderers dataProvider. In other words,
> a new
> > > > image gets appended to the dataProvider array.
> > > > 
> > > > Now this all works perfectly except for the following : The new
> image
> > > > is not displayed inside the TileList - at least not right away. As
> > > > soon as I scroll the TileList the new image appears. So what this
> > > > means is that the new image is only displayed when the TileList
> or the
> > > > screen is refreshed - however, I cannot find any way of doing this
> > > > programatically.
> > > > 
> > > > I've tried using "super.commitProperties()" to no avail,
unless I'm
> > > > calling it from the wrong place - currently calling it from a
method
> > > > within my upload titleWindow.
> > > > 
> > > > I've done all the usual searching, reading etc but I've come up
> blank.
> > > > Is there a way around this I'm just not seeing ? Any pointers
in the
> > > > right direction would be greatly appreciated.
> > > > 
> > > > thanks.
> > > >
> > >
> >
>


Reply via email to