• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

Applet-Integration in a JSF/Facelets application

 
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?
 
Saloon Keeper
Posts: 22483
151
Android Eclipse IDE Tomcat Server Redhat Java 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...
 
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.
 
So there I was, trapped in the jungle. And at the last minute, I was saved by this tiny ad:
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
    Bookmark Topic Watch Topic
  • New Topic