• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Embedding a JSF application iside a JSF page of another application

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
How can I call and embed one JSF application inside a JSF page of another application
 
Ranch Hand
Posts: 859
IBM DB2 Chrome Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Something like this:


Also, look into the ui:composition feature e.g:


WP
 
Saloon Keeper
Posts: 27764
196
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
Unfortunately, the ui:include tag will only embed Facelets components, not entirely separate webapps.

Embedding a webapp in the the page view of another webapp can be a problem. The simplest "brute force" HTML way would be to use frames, but frames and JSF are not very good friends, so this can mean some struggle.

It's always good in cases like this to consider whether a Portal approach is what you really want. JSF does support working in a JSR-288 Portlet environment.
 
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Is it possible to embed jsf page into html page?
 
Tim Holloway
Saloon Keeper
Posts: 27764
196
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

Matt Hardy wrote:Is it possible to embed jsf page into html page?



If you use frames.
 
Matt Hardy
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
But frames done work in JSF na?
 
Tim Holloway
Saloon Keeper
Posts: 27764
196
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

Matt Hardy wrote:But frames done work in JSF na?



They work, but it can be a problem. Frames are fetching 2 (or more) web pages at the same time and sometimes that leads to problems.

Then again, using frames at all can earn you scorn in some elitist circles.
 
William P O'Sullivan
Ranch Hand
Posts: 859
IBM DB2 Chrome Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator


I heap scorn on iframes!!!

I misread the question. If the OP wants to embed a completely separate app, then portal technology seems apt.

Unless a facelet component with a backing bean, invokes the app, packages up the generated HTML and presents it.
This of course leads to all sorts of css, js, image reference issues and is not a trivial task.

WP
reply
    Bookmark Topic Watch Topic
  • New Topic