Make org.apache.wicket.markup.html.image work with ajax by adding either random 
or autoindex or??
-------------------------------------------------------------------------------------------------

                 Key: WICKET-939
                 URL: https://issues.apache.org/jira/browse/WICKET-939
             Project: Wicket
          Issue Type: New Feature
          Components: wicket
            Reporter: Nino Martinez
             Fix For: 1.3.0-beta4


When you add a image via ajax, browser just caches it so the new image wont 
actually be shown.

Resolutions are these two :
        protected void onComponentTag(ComponentTag tag) {
            super.onComponentTag(tag);
            tag.put("src", tag.getString("src") + "&rand=" + Math.random());
        }

or event better since random could give duplicate results:
                        protected void onComponentTag(ComponentTag tag) {
                                super.onComponentTag(tag);
                                tag.put("src", tag.getString("src") + 
"&autoIndex=" + getPage().getAutoIndex());
                        }
Although im not sure if its safe to use autoIndex?

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to