• 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:
  • Tim Cooke
  • Campbell Ritchie
  • Ron McLeod
  • Junilu Lacar
  • Liutauras Vilda
Sheriffs:
  • Paul Clapham
  • Jeanne Boyarsky
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Piet Souris
  • Carey Brown
Bartenders:
  • Jesse Duncan
  • Frits Walraven
  • Mikalai Zaikin

How to work JSF with iframe

 
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
This is my xhtml page. Here i am using <iframe> and giving source like as shown below,

<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core">
<body>
<f:view>
<h:form>
<iframe width="100%" height="110%" src="main/chartSummary/visits1.xhtml">
</iframe>
</h:form>
</f:view>
</body>
</html>

and this is my visits.xhtml page.

<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core">
<body>
<f:view>
<h:form>
<h:dataTable id="adresstable">
<h:column id="date">
<f:facet name="header">
<h:outputText value="FName" />
</f:facet>
<h:outputText value="Vinutha" />
</h:column>
<h:column id="title">
<f:facet name="header">
<h:outputText value="FName" />
</f:facet>
<h:outputText value="ML}" />
</h:column>
</h:dataTable>
</h:form>
</f:view>
</body>
</html>

Now, when i deploy first file, only frame is displaying but its not displaying JSF components within frame.

So, how to work JSF with iframe.......

Thanks,
Vinutha.
 
reply
    Bookmark Topic Watch Topic
  • New Topic