Why not use System.currentTimeMillis()? Or if you are really concerned
use nanotime.

Martijn

On 9/7/07, Nino Saturnino Martinez Vazquez Wael <[EMAIL PROTECTED]> wrote:
> so no, talking to Matej on ##wicket, the fix was this:
>
> 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?I've put up a feature
> request for it to be implemented.
>
> https://issues.apache.org/jira/browse/WICKET-939
>
>
> -Nino
>
>
> Nino Saturnino Martinez Vazquez Wael wrote:
> > this is whats generated:
> >
> > http://localhost:8080/thirdparty-webapp/thirdParty/?wicket:interface=:4:form:phoneA:phoneThumb:image::IResourceListener::
> >
> >
> > regards Nino
> >
> > Martijn Dashorst wrote:
> >> The most failsafe solution to the update image using Ajax request to
> >> my mind is to add a random number to the url for the image (I thought
> >> we already did that?).
> >>
> >> Martijn
> >>
> >> On 9/7/07, Nino Saturnino Martinez Vazquez Wael
> >> <[EMAIL PROTECTED]> wrote:
> >>
> >>> Hi
> >>>
> >>> How do I add keywords no-cache and etc, for a panel? Reason are that
> >>> the
> >>> panel carries a image and that gets cached so when my ajax call
> >>> comes in
> >>> and updates the model then the old image are shown..
> >>>
> >>> regards Nino
> >>>
> >>>
> >>> ---------------------------------------------------------------------
> >>> To unsubscribe, e-mail: [EMAIL PROTECTED]
> >>> For additional commands, e-mail: [EMAIL PROTECTED]
> >>>
> >>>
> >>>
> >>
> >>
> >>
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
Buy Wicket in Action: http://manning.com/dashorst
Apache Wicket 1.3.0-beta3 is released
Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.0-beta3/

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

Reply via email to