File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "Does JSF support AWT components?" Watch "Does JSF support AWT components?" New topic

Does JSF support AWT components?

prajal Mehta
Ranch Hand

Joined: Dec 03, 2007
Posts: 66

I am writing a JSF program which would display a Canvas3D object.

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

Joined: Mar 22, 2005
Posts: 42959
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.
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:
subject: Does JSF support AWT components?
It's not a secret anymore!