Thanks Guilherme!
Your solution is the only one working. The explanation has to do with the
browser cache as far as I can see it.
The only way to get the browser to pull the image from the servlet is to CHANGE
the URL as far as I can see it. So I put a counter nonsense like this:
----------------
// Create a button
var button = new qx.ui.form.Button("Change Image");
button.setAllowGrowY(false);
var image = new qx.ui.basic.Image();
this.__counter = 0;
// Document is the application root
var doc = this.getRoot();
doc.setLayout(new qx.ui.layout.HBox());
// Add button to document at fixed coordinates
doc.add(button);
doc.add(image);
// Add an event listener
button.addListener("execute", function(e) {
this.__counter++;
var nonsense = "?nonsense=" + this.__counter;
image.setSource("http://www.catify.com/demo/images/ftp.png" + nonsense);
}, this);
----------------
What do the qooxdoo guys say about this? Is there a better way to do this?
Could you add this nonsense string inside qooxdoo so it always works even with
dynamic images with the SAME name when you want the image to be pulled from the
server even if it already exists in the browser cache?
Enhancement bug?
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