Hi all,

I have a gridview, which in populateItem is filled with:

new PhotoTile("tileContent", (PhotoCardModel) item.getModel());

In PhotoTile's constructor, I do:

AjaxLink clickLink = ....
clickLink.add(new Image("thumbnail", rs));

where 'rs' is a WebResource of which the getResourceStream returns a
FileResourceStream pointing to the image location on disk.

The HTML img tag of the first image on the first row is rendered as follows:

<img 
src="?wicket:interface=:0:rows:0:cols:0:tileContent:clickLink:thumbnail::IResourceListener"
border="0"/>

When I upload a new photo with my application, a new thumbnail appears
on the grid, shifting the existing ones one position lower (I'm
sorting descending). But because the image tag of the first thumbnail
remains the same (rows:0:cols:0), I see the cached image of the
thumbnail that was at that position just before. When I clear my
browser cache, I see the right image.

I fixed this a bit hacky by using NonCachingImage which add some
random stuff to the img url, but that's not what I want, because these
images could be cached without problems.

I want the image url to be something like:  <img src="<whatever prefix
goes here>/images/<img name>" />

How do I achieve this?

-- 
Martijn Lindhout
JointEffort IT Services
http://www.jointeffort.nl
[EMAIL PROTECTED]
+31 (0)6 18 47 25 29

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to