I leave the code, I'm not sure if the structure is good or if it is actually correct to do it that way. There are exceptions leave the following information:
1. Configuration com.sun.faces.CofigurationException start org.apache.catalina.LifecycleException ContainerBase.addChild Failed! DTD factoryClass
2. Java.lang.IllegalStateException ContainerBase.addChild org.apache.catalina.LifecycleException com.sun.faces.CofigurationException start Configuration Failed! DTD factoryClass
file.xhtml
Code: Select all
<ui:define name="centerPanel" >
<p:layoutUnit position="center" scrollable="true">
<h:form acceptcharset="UTF-8">
<p:dashboard id="board" model="#{SARLBean.model}">
<c:forEach items="#{SARLBean.reportesGraficos}" var="reports">
<p:panel id="#{reports.nombreGenerico}" header="#{reports.nombreReporte}" toggleable="true" closable="true" style="width: 950px; height: 700px" >
<iframe align="middle" frameborder="0" height="620" width="920" src="#{reports.path}" id="#{reports.nombreGenerico}" name="#{reports.nombreGenerico}" style="width: 920px; height: 620px" scrolling="yes" ></iframe>
<a href="#{reports.path}" target="#{reports.nombreGenerico}">Mostrar</a>
</p:panel>
</c:forEach>
</p:dashboard>
</h:form>
</p:layoutUnit>
</ui:define>