ZK - Open Source Ajax Java FrameworkZK - Open Source Ajax Java Framework

Image

azgard
10 Aug 2010 15:11:14 GMT
10 Aug 2010 15:11:14 GMT

I have a problem, when I want insert a image, I can see in the Zul visual editor but when I execute the application, I can't see

jimmyshiau
10 Aug 2010 19:58:16 GMT
10 Aug 2010 19:58:16 GMT

Hi azgard

this is my sample

<zk>
<image src="img.jpg"/>
</zk>

it worked well

azgard
10 Aug 2010 22:39:02 GMT
10 Aug 2010 22:39:02 GMT

ok, but isn't necessary put http://localhost/img.jpg?

jimmyshiau
10 Aug 2010 23:19:26 GMT
10 Aug 2010 23:19:26 GMT

no
what location did you put?

azgard
11 Aug 2010 22:39:07 GMT
11 Aug 2010 22:39:07 GMT

I create a folder into my project (the name is image) and into that folder I put my images, the source is :
<image src="C:\Users\Alvaro\workspace\Practicando\src\logo.gif" />

I can see in the preview of the eclipse but when I execute in a web browser I can't see

azgard
11 Aug 2010 22:39:08 GMT
11 Aug 2010 22:39:08 GMT

I create a folder into my project (the name is image) and into that folder I put my images, the source is :
<image src="C:\Users\Alvaro\workspace\Practicando\src\logo.gif" />

I can see in the preview of the eclipse but when I execute in a web browser I can't see

azgard
11 Aug 2010 22:39:38 GMT
11 Aug 2010 22:39:38 GMT

thank for you answers : )

jimmyshiau
11 Aug 2010 23:25:18 GMT
11 Aug 2010 23:25:18 GMT

You cannot use absolute path

alaoua2
22 Aug 2010 17:24:40 GMT
22 Aug 2010 17:24:40 GMT

i have a same problem please help me ...thx

jimmyshiau
22 Aug 2010 20:18:26 GMT
22 Aug 2010 20:18:26 GMT

You can set the url of image with relative path

alaoua2
29 Aug 2010 10:00:28 GMT
29 Aug 2010 10:00:28 GMT

i am not understand ....please to explain me...

jimmyshiau
30 Aug 2010 20:19:41 GMT
30 Aug 2010 20:19:41 GMT

You have put the image files in WebContent
EX:
WebContent/img/item1.jpg

<image src="img/item1.jpg" />

alaoua2
10 Sep 2010 18:47:49 GMT
10 Sep 2010 18:47:49 GMT

merciii

jimmyshiau
11 Sep 2010 07:22:59 GMT
11 Sep 2010 07:22:59 GMT

@alaoua2
merciii << mean ?