aspose file tools*
The moose likes JSF and the fly likes Applet-Integration in a JSF/Facelets application Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSF
Bookmark "Applet-Integration in a JSF/Facelets application" Watch "Applet-Integration in a JSF/Facelets application" New topic
Author

Applet-Integration in a JSF/Facelets application

Frank Eichfelder
Ranch Hand

Joined: Aug 25, 2003
Posts: 33
I am developing a web application with JSF and Facelets and want to integrate an applet into my jsf-page.

In good old JSP there existed the jsp:plugin tag, which generated html-code for various browsers, so I didn't have to bother with object or embed tags or clsids:

Does anybody know whether there exists a similar way to integrate an applet with JSF/Facelets?
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 16305
    
  21

You should be able to embed this inside your Facelets page components with no problem. Although I'd recommend wrapping it with an <f:verbatim> tag just to be on the safe side.


Customer surveys are for companies who didn't pay proper attention to begin with.
Frank Eichfelder
Ranch Hand

Joined: Aug 25, 2003
Posts: 33
Thanks for your suggestion, but it doesn't work, neither with <f:verbatim> tag nor without.
The generated html-page contains in both cases the uninterpreted jsp:plugin tag
(NB: I didn't forget to add xmlns:jsp="http://java.sun.com/JSP/Page" to the <html> tag)

I found meanwhile a solution which relies on writing a custom component:
jsp:include Component in facelets

Although I would prefer an easier solution, this approach is working at least...
Bauke Scholtz
Ranch Hand

Joined: Oct 08, 2006
Posts: 2458
Frank Eichfelder wrote:Thanks for your suggestion, but it doesn't work, neither with <f:verbatim> tag nor without.
The generated html-page contains in both cases the uninterpreted jsp:plugin tag
(NB: I didn't forget to add xmlns:jsp="http://java.sun.com/JSP/Page" to the <html> tag)

I found meanwhile a solution which relies on writing a custom component:
jsp:include Component in facelets

Although I would prefer an easier solution, this approach is working at least...

He meant that you can embed it just the plain vanilla HTML way.

You know, JSP is a view technology and Facelets is another view technology. You canĀ“t exchange the implicit taglibs <jsp:xxx> and <ui:xxx> between them.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Applet-Integration in a JSF/Facelets application