myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andreas Niemeyer <andreas.nieme...@gutzmann.com>
Subject Re: Integrate flash movie in JSF
Date Mon, 27 Oct 2008 17:43:01 GMT
Hi,

this topic comes up again since I need to add special flash params to my 
multi-file upload view.

I'm using JSF 1.1 with and without the <f:verbatim> tag and got parsing 
errors:

17:40:48,387 ERROR [jsp:52] com.sun.facelets.FaceletException: Error 
Parsing /upload.xhtml: Error Traced[line: 7] The reference to entity 
"fileTypes" must end with the ';' delimiter.



I tried to add this ';' after the fileTypes param value, but it doesn't 
work.

Here is a sample page to get flash movie customize and below my code I 
tried. I thought everything would be fine with the <OBJECT> tag.


Regards,
Andreas


http://www.element-it.com/Examples/MultiPowUpload/Customize.html


<div xmlns="http://www.w3.org/1999/xhtml" 
xmlns:h="http://java.sun.com/jsf/html" 
xmlns:ui="http://java.sun.com/jsf/facelets" 
xmlns:f="http://java.sun.com/jsf/core">

	<f:verbatim escape="#{true}">

	<OBJECT id="FlashFilesUpload" 
codeBase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0"
	        width="450" height="350" 
classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000">
	        <PARAM NAME="FlashVars" 
VALUE="uploadUrl=#{fileupload.basepath}/FileUploadGaleryServlet&fileTypes=Images|*.jpg\;*.jpeg\;*.gif\;*.png\;*.bmp"/>
			<PARAM NAME="Movie" VALUE="ElementITMultiPowUpload1.7.swf"/>
	        <PARAM NAME="Src" 
VALUE="#{fileupload.basepath}/ElementITMultiPowUpload1.7.swf"/>
			<PARAM NAME="WMode" VALUE="Window"/>
	        <PARAM NAME="Play" VALUE="-1"/>
	        <PARAM NAME="Loop" VALUE="-1"/>
	        <PARAM NAME="Quality" VALUE="High"/>
	        <PARAM NAME="SAlign" VALUE=""/>
	        <PARAM NAME="Menu" VALUE="-1"/>
	        <PARAM NAME="Base" VALUE=""/>
	        <PARAM NAME="AllowScriptAccess" VALUE="always"/>
	        <PARAM NAME="Scale" VALUE="ShowAll"/>
	        <PARAM NAME="DeviceFont" VALUE="0"/>
	        <PARAM NAME="EmbedMovie" VALUE="0"/>
	        <PARAM NAME="SWRemote" VALUE=""/>
	        <PARAM NAME="MovieData" VALUE=""/>
	        <PARAM NAME="SeamlessTabbing" VALUE="1"/>
	        <PARAM NAME="Profile" VALUE="0"/>
	        <PARAM NAME="ProfileAddress" VALUE=""/>
	        <PARAM NAME="ProfilePort" VALUE="0"/>
			<embed bgcolor="#F8F6E6" id="EmbedFlashFilesUpload" 
src="#{fileupload.basepath}/ElementITMultiPowUpload1.7.swf" 
quality="high" 
pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"

type="application/x-shockwave-flash" width="450" height="350"
		 
flashvars="uploadUrl=#{fileupload.basepath}/FileUploadGaleryServlet&fileTypes=Images|*.jpg\;*.jpeg\;*.gif\;*.png\;*.bmp">
			</embed>
	 </OBJECT>

    </f:verbatim>	
</div>



Scott O'Bryan schrieb:
> In jsf1.2, just put the object tag in your page.  For JSF 1.1, surround 
> it with an f:verbatim tag.
> 
> Sent from my iPhone
> 
> On Oct 17, 2008, at 11:23 AM, Andreas Niemeyer 
> <andreas.niemeyer@gutzmann.com> wrote:
> 
>> Hi,
>>
>> Is there a "simple" way to put a flash movie with the <OBJECT> Tag in 
>> a JSF page?
>>
>> Maybe the use of a JSP page might simpler, but when using JSP pages 
>> they breaks the lifecycle, or?
>>
>>
>> Regards,
>> Andreas
>>
> 


Mime
View raw message