jsf and flash
hi,
i have one problem.
i have a flash object (showing something like a diagram) where i read data from the created txt-file.
my application changes the txt-file so that my flash should be seen every time other way. But it doesn磘.
Here some code:
<h:column>
<f:verbatim escape="false">
<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0"
WIDTH="175" HEIGHT="120" id="piediagramm" ALIGN="">
<PARAM NAME=movie VALUE="pie/piediagramm.swf?path=pie/piediagramm.txt">
<PARAM NAME=quality VALUE=high> <PARAM NAME=bgcolor VALUE=#FFFFFF>
<EMBED src="pie/piediagramm.swf?path=pie/piediagramm.txt" quality=high bgcolor=#FFFFFF WIDTH="175"
HEIGHT="120" NAME="piediagramm" ALIGN="" TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer">
</EMBED>
</OBJECT>
</f:verbatim>
</h:column>
i磎 sure that the flash is correct, because if i open it (i.e from windows explorer) it shows me data last updated. But from my application it shows me always the last data. No changes are made.
[1665 byte] By [
naekoa] at [2007-11-26 15:20:38]

# 1
Could be a browser caching problem.
Add this in between the <HEAD> tags on the page:
<!-- Don't cache pages -->
<META HTTP-EQUIV="PRAGMA" CONTENT="NO-CACHE">
<META HTTP-EQUIV="CACHE-CONTROL" CONTENT="NO-CACHE">
<META HTTP-EQUIV="EXPIRES" CONTENT="0">
Let me know if that fixes it.
CowKing
# 2
unfortunately it didnt help.
but i could reproduce the error.
if i refresh my project (F5 in Eclipse) and clean manually my cache and temp folder in IE then i get the data which are currently in my piediagramm.txt
So it must be something with cache or settings in development environment.
Any other ideas?
# 3
It's probably an IDE thing. Every time I've had a cache problem, adding the above lines has worked. The Eclipse browser might not be reading the meta tags properly.
What you can try is going to windows->preferences. Then select the Web Browser preference. Change it to an external web browser like IE, and see if that works. Otherwise, if you can, I'd try deploying it on your web server (I'm assuming that this project will eventually be getting deployed on a web server). Then see if it is still a problem.
CowKing