Actually  we discussed that.

I suggested it but as Matej wrote:
don't think so. you can have two tags generated in same millisecond.. As for nano might be better, lesser chance for tags being generated in the same nanosec. But whats wrong with autoindex?

Martijn Dashorst wrote:
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]





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

Reply via email to