This week's book giveaway is in the Java 8 forum.
We're giving away four copies of Java 8 in Action and have Raoul-Gabriel Urma, Mario Fusco, and Alan Mycroft on-line!
See this thread for details.
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


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "Embedding Flex component in JSF 2.0" Watch "Embedding Flex component in JSF 2.0" New topic
Author

Embedding Flex component in JSF 2.0

rajarshi roy
Greenhorn

Joined: Feb 14, 2010
Posts: 21
Hi,
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: http://aspose.com/file-tools
 
subject: Embedding Flex component in JSF 2.0
 
Similar Threads
First Cup: Java EE Tutorial
Is this a facelets?
composite component not working
Problem achieving masterpage functionality in JSF
impossible to make work a galleria from primefaces