You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Igor Vaynberg (JIRA)" <ji...@apache.org> on 2007/09/07 16:45:31 UTC
[jira] Resolved: (WICKET-939) Make
org.apache.wicket.markup.html.image work with ajax by adding either random
or autoindex or??
[ https://issues.apache.org/jira/browse/WICKET-939?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Igor Vaynberg resolved WICKET-939.
----------------------------------
Resolution: Invalid
Assignee: Igor Vaynberg
see NonCachingImage
> 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
> Assignee: Igor Vaynberg
> 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.