JSF and Flash

Hi everybody,

I'm trying to integrate a flash object into my JSF pages, and found the following code from this forum:

<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>

I've put this code into my JSF pages( of course after having changed the flash object and the access path... to suit my application), but the flash object just doens't show up! Do anybody have any idea?

Thanks.

[1122 byte] By [vbn59a] at [2007-11-27 6:41:42]
# 1
I don't know how to explain it, but I've put the flash file into the root web dir, and it works!
vbn59a at 2007-7-12 18:11:25 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2

src="pie/piediagramm.swf?path=pie/piediagramm.txt"

Maybe you're in confusion with 'relative paths' v.s. 'absolute paths'. If you don't do any path checks inside the flashapp, then the flashapp may assume that "path=pie/piediagramm.txt" refers to "/pie/pie/piediagramm.txt".

Try "path=piediagramm.txt" or "path=/pie/piediagramm.txt" instead if you want to keep the stuff in /pie.

BalusCa at 2007-7-12 18:11:25 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...