-
FEATURED COMPONENTS
First time here? Check out the FAQ!
Hi,
I can't seem to understand how to add image to some component.
I'm using: <button id="ok" label="OK" image="/img/image1.gif">
No matter to which folder i add img folder i cant display an image. I tried all possible folders in project from Java Resources up to WebContent.
The path was allways correct, but still no result.
Thanks
I tried following line in zk live demo
http://www.zkoss.org/zkdemo/userguide/
<button id="ok" label="OK" image="/img/Centigrade-Widget-Icons/Globe-128x128.png" />
It works.
Maybe your project haven't sync the resource?
You may clean and rebuild your project first.
Asked: 2010-02-26 02:51:17 +0800
Seen: 369 times
Last updated: Feb 26 '10