*
The moose likes JSF and the fly likes How to work JSF with iframe Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSF
Bookmark "How to work JSF with iframe" Watch "How to work JSF with iframe" New topic
Author

How to work JSF with iframe

vinutha
Greenhorn

Joined: Nov 29, 2006
Posts: 29
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">
<hutputText value="FName" />
</f:facet>
<hutputText value="Vinutha" />
</h:column>
<h:column id="title">
<f:facet name="header">
<hutputText value="FName" />
</f:facet>
<hutputText 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.
 
Don't get me started about those stupid light bulbs.
 
subject: How to work JSF with iframe
 
Similar Threads
Problem trying to send file to browser in JSF
Facelets template/composition without name atribute
need help to resolve unexpected XML tag expected:.......
Form calling a session scoped backing bean constructor twice
commandLink not working in datatable+jsf2.0