0

Aimage url question.

asked 2010-09-22 21:13:53 +0800

kykub gravatar image kykub
75 1

Hi all,

my code

AImage ia = new org.zkoss.image.AImage(obj.hashCode()+"",obj.getByte());
Image img = new Image();
img.setContent(ia);


I working fine but when i refresh url of img change any time


http://localhost:8080/zk5/zkau/view/zd_rdl1/z_rdl_a1/1/c/1950629103.jpeg
http://localhost:8080/zk5/zkau/view/zd_sdl1/z_sdl_a1/1/c/1950629103.jpeg
http://localhost:8080/zk5/zkau/view/zd_tdl1/z_tdl_a1/1/c/1950629103.jpeg
http://localhost:8080/zk5/zkau/view/zd_udl1/z_udl_a1/1/c/1950629103.jpeg
http://localhost:8080/zk5/zkau/view/zd_vdl1/z_vdl_a1/1/c/1950629103.jpeg

how to fix it


Thank you.

delete flag offensive retag edit

4 Replies

Sort by ยป oldest newest

answered 2010-09-23 04:53:03 +0800

jumperchen gravatar image jumperchen
3909 2 8
http://jumperchen.blogspo... ZK Team

because the component's uuid will change each time you refresh the page.

link publish delete flag offensive edit

answered 2010-09-23 09:23:46 +0800

kykub gravatar image kykub
75 1

Hi
We can change ?

Thank you.

link publish delete flag offensive edit

answered 2010-09-23 20:28:06 +0800

jumperchen gravatar image jumperchen
3909 2 8
http://jumperchen.blogspo... ZK Team

you can use an ID Generator to generate the same Uuid each time the same component.

link publish delete flag offensive edit

answered 2010-09-24 09:13:56 +0800

kykub gravatar image kykub
75 1

Hi ,

i read this http://docs.zkoss.org/wiki/How_to_Test_ZK_Application_with_Selenium
it working but how to cache image.


Thank you for help

link publish delete flag offensive edit
Your reply
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow

RSS

Stats

Asked: 2010-09-22 21:13:53 +0800

Seen: 250 times

Last updated: Sep 24 '10

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More