Help needed in facelets with frames
Hi,
I have one sample facelet appln, but i am trying to implement using frames. In the listing jsp i am calling two jsp thru frames but when i access the listing jsp, content of the two jsp's are not getting displayed in the UI, I mean if give anthing outside the frameset, it is getting displayed. Please look at code below and can anybody tell me how to solve this problem....
Please look at the sample code below..
listing.xhtml
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-Frameset.dtd">
<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"
xmlns:a="http://www.arc-mind.com/jsf">
<ui:composition template="/WEB-INF/layout/layout.xhtml">
<ui:define name="title">Backend Listing screen</ui:define>
<ui:define name="content">
<h:form>
<frameset rows="33%,*" border="0" frameborder="0">
<frame name="f1" src="/body.xhtml" scrolling="no" noresize="noresize" />
<frame name="f1" src="/footer.xhtml" scrolling="no" noresize="noresize" />
</frameset>
<h:commandLink action="#{CDManagerBean.addNew}">
<f:verbatim>Add CD</f:verbatim>
</h:commandLink>
</h:form>
</ui:define>
</ui:composition>
</html>
body.xhtml page is below
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-Frameset.dtd">
<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"
xmlns:a="http://www.arc-mind.com/jsf">
<h:dataTable id="items" value="#{CDManagerBean.cds}" var="cd"
rowClasses="oddRow, evenRow" headerClass="tableHeader">
<a:column entity="${cd}" fieldName="title" backingBean="${CDManagerBean}"/>
<a:column entity="${cd}" fieldName="artist" backingBean="${CDManagerBean}"/>
<a:column entity="${cd}" fieldName="price" backingBean="${CDManagerBean}"
sort="${false}"/>
<a:columnCommand label="Edit" action="editCD" backingBean="${CDManagerBean}"/>
</h:dataTable>
<h:commandLink action="#{CDManagerBean.addNew}">
<f:verbatim>Add CD</f:verbatim>
</h:commandLink>
</html>
Regards,
Saravanan

