-
FEATURED COMPONENTS
First time here? Check out the FAQ!
I'm developing a component. Now my widget need the URI to an image. The image is stored in the component JAR file: /web/stfo/comp/img/image.png. How can the widget compute the URI?
Hi steffen,
if the jar file is in your web application folder try this:
<zk> <button image="~./zul/img/breeze/menu/btn-arrow.gif"/> </zk>
The example has button with an image loaded from the breeze.jar which is avaliable in ...WEB-INF/lib of the web application.
Maybe you should us the address: ~./web/stfo/comp/img/image.png but I'm not sure.
regards,
Gunter
You can use
uriToImage = zk.ajaxURI("/web/stfo/comp/img/image.png", {au : true, ignoreSession : true});
in your JavaScript-widget.
Cheers, Maik
Asked: 2011-06-29 14:05:43 +0800
Seen: 184 times
Last updated: Jul 01 '11