I have no tried to implement this in that way:
FacesContext context = FacesContext.getCurrentInstance();
double zufall = 100*Math.random();
String viewId = "/anbindungsstatistik.jsp?r="+zufall;
UIViewRoot view =
context.getApplication().getViewHandler()
.createView(context, viewId);
view.setViewId(viewId);
context.setViewRoot(view);
context.renderResponse();
The Problem is, that no the chart isn't shown anymore, although I don't get an
error Stack..
I just see, that the picture is missing (with the little icon, with the X in
it...)
Any ideas?
Regards
Andy
-----Ursprüngliche Nachricht-----
Von: Tim Davies [mailto:[EMAIL PROTECTED]
Gesendet: Donnerstag, 10. November 2005 18:02
An: MyFaces Discussion
Betreff: Re: AW: AW: Prevent Firefox from caching..
In a jsp you could set it as:
http://www.example.com/page.faces<%= "?r="+Math.random() %>
(or something like that, my jsp java is a bit patchy)
[EMAIL PROTECTED] wrote:
>Ups... Sorry, I understood false.. I thought I will find an example there...
>;-)
>How can I add a randomised string to my URL?
>
>-----Ursprüngliche Nachricht-----
>Von: Tim Davies [mailto:[EMAIL PROTECTED]
>Gesendet: Donnerstag, 10. November 2005 17:56
>An: MyFaces Discussion
>Betreff: Re: AW: Prevent Firefox from caching..
>
>
>Sorry, that was just a made up url. Its just an example of how you might
>add a random number to a url to circumvent caching.
>
>[EMAIL PROTECTED] wrote:
>
>
>
>>The site example.com seems to be down or the link is not correct..
>>
>>Regards
>>Andy
>>
>>-----Ursprüngliche Nachricht-----
>>Von: Tim Davies [mailto:[EMAIL PROTECTED]
>>Gesendet: Donnerstag, 10. November 2005 17:45
>>An: MyFaces Discussion
>>Betreff: Re: Prevent Firefox from caching..
>>
>>
>>I think as a general rule you cant rely on the browser to reload a page
>>every time. This is especially true if the the user is viewing the page
>>through a proxy server which may have its own caching priorites.
>>Certainly if you want good behviour from this across different browsers
>>its worth looking for something else. I guess the old hack for this
>>problem is to append a randomised query string to the end of all your
>>urls, eg. http://www.example.com/page.faces?r=257625.
>>
>>
>>
>>Guillermo Meyer wrote:
>>
>>
>>
>>
>>
>>>Have you tried <META HTTP-EQUIV="Expires" CONTENT="-1"> ?
>>>
>>>
>>>
>>>-----Original Message-----
>>>*From:* [EMAIL PROTECTED]
>>>[mailto:[EMAIL PROTECTED]
>>>*Sent:* Jueves, 10 de Noviembre de 2005 01:15 p.m.
>>>*To:* [email protected]
>>>*Subject:* Prevent Firefox from caching..
>>>
>>>
>>>
>>>Does anyone know, how to tell Firefox not to cache pages...
>>>I have implemented a Chart via Jenia and the problem is that, when the
>>>page is display, the chart from the previous request is shown, until I
>>>press F5
>>>
>>>In IE this works correct, because I use this headers:
>>><META HTTP-EQUIV="Pragma" CONTENT="no-cache,no-store">
>>><META HTTP-EQUIV="Cache-Control"
>>>CONTENT="no-cache,no-store,must-revalidate,max-age=-1,post-check=0,
>>>pre-check=0">
>>><META HTTP-EQUIV="Expires" CONTENT="Fri, Jun 12 1981 08:20:00 GMT">
>>>
>>>But Firefox doesn't seem to care..
>>>
>>>If there it no change to tell Firefox to do so, is there a workaround?
>>>
>>>Regards
>>>Andy
>>>
>>>
>>>______________________________________________________________________
>>>This email and any files transmitted with it are confidential and
>>>intended solely for the use of the individual or entity to whom they
>>>are addressed. If you have received this email in error please notify
>>>your system manager. This footnote also confirms that this email
>>>message has been swept for the presence of computer viruses.
>>>______________________________________________________________________
>>>
>>>
>>>NOTA DE CONFIDENCIALIDAD
>>>Este mensaje (y sus anexos) es confidencial, esta dirigido
>>>exclusivamente a las personas direccionadas en el mail y puede
>>>contener informacion (i)de propiedad exclusiva de Interbanking S.A. o
>>>(ii) amparada por el secreto profesional. Cualquier opinion en el
>>>contenido, es exclusiva de su autor y no representa necesariamente la
>>>opinion de Interbanking S.A. El acceso no autorizado, uso,
>>>reproduccion, o divulgacion esta prohibido. Interbanking S.A no
>>>asumira responsabilidad ni obligacion legal alguna por cualquier
>>>informacion incorrecta o alterada contenida en este mensaje. Si usted
>>>ha recibido este mensaje por error, le rogamos tenga la amabilidad de
>>>destruirlo inmediatamente junto con todas las copias del mismo,
>>>notificando al remitente. No debera utilizar, revelar, distribuir,
>>>imprimir o copiar este mensaje ni ninguna de sus partes si usted no es
>>>el destinatario. Muchas gracias.
>>>
>>>
>>>
>>>
>>
>>
>>
>>
>
>
>
--
Tim Davies
Analyst Developer
KTS PLC: Service you can bank on
8th Floor, Finsbury Tower,
103-105 Bunhill Row,
London EC1Y 8TY
tel: +44 (0)20 7256 2300
fax: +44 (0)20 7256 2301
email: [EMAIL PROTECTED]
web: http://www.ktsplc.com
______________________________________________________________________
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
your system manager.
This footnote also confirms that this email message has been swept
for the presence of computer viruses.
______________________________________________________________________