Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Applet-Integration in a JSF/Facelets application

 
Frank Eichfelder
Ranch Hand
Posts: 33
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 18212
53
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Frank Eichfelder
Ranch Hand
Posts: 33
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2458
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic