File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JSF and the fly likes Embedding Flex component in JSF 2.0 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSF
Bookmark "Embedding Flex component in JSF 2.0" Watch "Embedding Flex component in JSF 2.0" New topic

Embedding Flex component in JSF 2.0

rajarshi roy

Joined: Feb 14, 2010
Posts: 21
I am new to JSF.
I am facing certain problems with embedding Flex components in JSF 2.0 pages.
I had followed the following guide to do this :
Oracle guide

I was able to call the Flex page successfully from the template xhtml page.
But I get the following error in the internet explorer while trying to run the page where the composite component in being called :
Webpage error details

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0)
Timestamp: Sun, 5 Feb 2012 08:34:16 UTC

Message: Invalid argument.
Line: 565
Char: 5
Code: 0
URI: http://localhost:8080/DemoProject/resources/demo/swfobject.js

I am using Eclipse Indigo version with Tomcat 7.
I had manually created the resources folder inside WebContent and demo folder inside resources and rest settings are default.
Please find the code of the custom component below :

This page runs properly.

Please find the code of the index page below :

This is where I get the error.Kindly help.
I agree. Here's the link:
subject: Embedding Flex component in JSF 2.0
It's not a secret anymore!