I seem to be having problems loading images in 3.0.  I have a fairly simple
app called todo which resides in /var/www/qx/todo and it uses the sdk in
/var/www/qooxdoo/qooxdoo-3.0-sdk.

Inside of the Application.js file is @asset(todo/*) along with

var newButton = new qx.ui.toolbar.Button(this.tr("Add"),
"todo/list-add.png");

In directory /var/www/qx/todo/source/resource/todo is file list-add.png (and
its access bits are set correctly).  When I run the source version of the
app I get the message in Firebug:

qx.ui.basic.Image[84-0]: try to load an unmanaged relative image:
todo/list-add.png

followed by a network error:

"NetworkError: 404 Not Found -
http://phenom/qx/todo/source/todo/list-add.png";

Which seems to indicate that the image is being loaded from the wrong
directory.  If I actually create the directory /var/www/qx/todo/source/todo
(note the missing resource subdirectory) and copy list-add.png into it then
I still get the unmanaged message but not the 404 and the icon loads
correctly?

Also, when the build version is generated (after performing distclean and
source-all) build/resource only contains a qx subdirectory but not a todo
subdirectory.

Any ideas?  Thanks.




--
View this message in context: 
http://qooxdoo.678.n2.nabble.com/image-loading-problem-in-3-0-tp7584206.html
Sent from the qooxdoo mailing list archive at Nabble.com.

------------------------------------------------------------------------------
See everything from the browser to the database with AppDynamics
Get end-to-end visibility with application monitoring from AppDynamics
Isolate bottlenecks and diagnose root cause in seconds.
Start your free trial of AppDynamics Pro today!
http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to