You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by mlabs <ml...@gmail.com> on 2012/06/20 03:31:53 UTC

DynamicImageResource in ajax panel

I have a panel that I update via ajax.
In that panel is an Image.
The Image uses a DynamicWebResource, whose getImageData() method produces a
PNG file.
The getImageData() override gets called the first time the page renders but
upon subsequent refreshes of the panel via ajax, it does not... so my image
doesn't get updated.
I've tried marking it as non-cacheable and I also tried invalidating it...
but nothing seems to cause the getImageData() override to be called again...

any ideas what I might be doing wrong?

TIA


--
View this message in context: http://apache-wicket.1842946.n4.nabble.com/DynamicImageResource-in-ajax-panel-tp4650094.html
Sent from the Users forum mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: DynamicImageResource in ajax panel

Posted by vineet semwal <vi...@gmail.com>.
try new noncachingimage(id,  dynamicmodel<fortheresource>())

On Wed, Jun 20, 2012 at 7:01 AM, mlabs <ml...@gmail.com> wrote:
> I have a panel that I update via ajax.
> In that panel is an Image.
> The Image uses a DynamicWebResource, whose getImageData() method produces a
> PNG file.
> The getImageData() override gets called the first time the page renders but
> upon subsequent refreshes of the panel via ajax, it does not... so my image
> doesn't get updated.
> I've tried marking it as non-cacheable and I also tried invalidating it...
> but nothing seems to cause the getImageData() override to be called again...
>
> any ideas what I might be doing wrong?
>
> TIA
>
>
> --
> View this message in context: http://apache-wicket.1842946.n4.nabble.com/DynamicImageResource-in-ajax-panel-tp4650094.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>



-- 
thanks,

Vineet Semwal

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org