Hi Stefan,
have you tried "resetSource"?
This works for me in Playground:
--snip--
// Create a button
var button1 = new qx.ui.form.Button("Change Image");
var image = new
qx.ui.basic.Image("icon/22/actions/format-justify-left.png");
// Document is the application root
var doc = this.getRoot();
// Add button to document at fixed coordinates
doc.add(button1,
{
left : 100,
top : 50
});
doc.add(image,
{
left : 200,
top : 50
});
// Add an event listener
button1.addListener("execute", function(e) {
image.resetSource();
image.setSource("icon/22/apps/internet-web-browser.png");
}, this);
--snip--
Best regards - Claus
Am Mittwoch, den 08.09.2010, 11:28 +0200 schrieb Stefan Andersson:
> I have a problem with the Image widget.
>
> using setSource(imageUrl); works fine
>
> but second time I do it and the imageUrl has the same Url it does not
> work.
>
> The image is delivered by streaming from a Servlet .
>
> I have tried to do setSource(null) and then the same imageUrl again,
> but it does not work.
>
> I have tried resetResource(); without any effect.
>
> To me it seems that qooxdoo picks up the old one which is buffered.
> This is good if the source not explicitly is reset or changed to null
> etc.
>
> Do you have any solution to this? This does not necessarily be a bug,
> but it is definitively a weakness if it has not been implemented.
> Maybe there is some solution of cleaning the cache or dirty trick,
> though I prefer the clean variant...! :-)
>
> Stefan
> ------------------------------------------------------------------------------
> This SF.net Dev2Dev email is sponsored by:
>
> Show off your parallel programming skills.
> Enter the Intel(R) Threading Challenge 2010.
> http://p.sf.net/sfu/intel-thread-sfd
> _______________________________________________ qooxdoo-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
--
claus straube
phone +49-89-1265-3103
mobile +49-176-49673717
skype clausstraube
web http://www.catify.com
office room 1.122, heßstr. 89, 80797 munich
------------------------------------------------------------------------------
This SF.net Dev2Dev email is sponsored by:
Show off your parallel programming skills.
Enter the Intel(R) Threading Challenge 2010.
http://p.sf.net/sfu/intel-thread-sfd
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel