aspose file tools*
The moose likes JSF and the fly likes Does JSF support AWT components? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSF
Bookmark "Does JSF support AWT components?" Watch "Does JSF support AWT components?" New topic
Author

Does JSF support AWT components?

prajal Mehta
Ranch Hand

Joined: Dec 03, 2007
Posts: 66
Hi,

I am writing a JSF program which would display a Canvas3D object.
java.lang.Object
|
+--java.awt.Component
|
+--java.awt.Canvas
|
+--javax.media.j3d.Canvas3D


Canvas3D is an awt component.
It is not getting displayed in JSF page.

So I have a doubt if JSF supports awt components at all!

Any help is appriciated.
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42592
    
  65
How could JSF support Java GUI components? JSF runs on the server, so any GUI classes you use would be displayed on the server, where there's nobody around to see them.

If you want to use Java classes as part of the client, you need to look into applets or Java Web Start applications.


Ping & DNS - my free Android networking tools app
prajal Mehta
Ranch Hand

Joined: Dec 03, 2007
Posts: 66
thanks Ulf.

We are working on a POC (Proof of Concept) for one project.
The client does not want Applet based solution, they want JSF based solution.

thanks anyways.
I will find a workaround.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Does JSF support AWT components?