You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by lij <li...@cfc.at> on 2006/01/31 19:06:59 UTC
Subview problem with includes()
Hi !
The problem is that the rendered content of my
includes(includes/project_info.jsp ...) are "swallowed". On the
jsp_servlet code i see that out = _jspx_page_context.popBody() on the
end of _jspx_meth_h_panelGrid_0 swallows my content. Any ideas or
suggestions?
Thanks.
See code below.
<h:form>
<h:panelGrid columns="2" cellpadding="5"
footerClass="project-background"
styleClass="project-background" rowClasses="project-row">
<f:facet name="header">
<h:panelGrid columns="1" width="100%"
cellpadding="3" styleClass="project-background"
headerClass="page-header">
<f:facet name="header">
<h:outputText value="Approve a project" />
</f:facet>
<h:outputText value="Application messages."
styleClass="errors" />
</h:panelGrid>
</f:facet>
<%-- Panel data elements --%>
<f:subview id="project_info">
<jsp:include page="includes/project_info.jsp"
flush="false"/>
</f:subview>
<f:subview id="project_artifacts">
<jsp:include page="includes/project_artifacts.jsp"
flush="false"/>
</f:subview>
<f:facet name="footer">
<h:panelGroup>
<f:subview id="project_comments">
<jsp:include
page="includes/project_comments.jsp" />
</f:subview>
<%-- Button panel --%>
<h:panelGrid columns="2"
rowClasses="table-odd-row">
<h:commandButton value="Approve"
action="approve" />
<h:commandButton value="Cancel"
action="cancel" immediate="true" />
</h:panelGrid>
</h:panelGroup>
</f:facet>
</h:panelGrid>
</h:form>