On 11/07/2013 01:10 PM, Jeroen Smit wrote:
Hi,
I implemented a cell rendered to be able to show a checkbox for a
boolean column.
In code I use default Qx images and cache the uri's using:
vars =
qx.util.AliasManager.getInstance().resolve("decoration/table/boolean-true.png");
this.__trueIconUrl = qx.util.ResourceManager.getInstance().toUri(s);
s =
qx.util.AliasManager.getInstance().resolve("decoration/table/boolean-false.png");
this.__falseIconUrl = qx.util.ResourceManager.getInstance().toUri(s);
In debug mode (using F7) I see a lot of warnings stating:
ImageLoader: Not recognized format of external image
"qooxdoo-3.0.1-sdk/framework/source/resource/qx/decoration/Modern/table/boolean-true.png"
What am I doing wrong here?
For one thing, all resources must be covered by appropriate @asset hints
so they get registered with the qooxdoo runtime. In the file containing
the above code, you could add in the file-level JSDoc comment something like
* @asset(qx/decoration/Modern/table/boolean-true.png)
This will get you rid of the "external image" or "unmanaged resource"
warnings.
As for the unrecognized format, how do you serve your app? Through a web
server? Which mime-type does it report with the image file?
T.
------------------------------------------------------------------------------
November Webinars for C, C++, Fortran Developers
Accelerate application performance with scalable programming models. Explore
techniques for threading, error checking, porting, and tuning. Get the most
from the latest Intel processors and coprocessors. See abstracts and register
http://pubads.g.doubleclick.net/gampad/clk?id=60136231&iu=/4140/ostg.clktrk
_______________________________________________
qooxdoo-devel mailing list
qooxdoo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel