• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Devaka Cooray
  • Ron McLeod
  • Jeanne Boyarsky
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Piet Souris
  • Carey Brown
  • Tim Holloway
Bartenders:
  • Martijn Verburg
  • Frits Walraven
  • Himai Minh

Applet-Integration in a JSF/Facelets application

 
Ranch Hand
Posts: 33
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 26290
186
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Bring out your dead! Or a tiny ad:
the value of filler advertising in 2021
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic