HTML in components Primefaces

UI Components for JSF
Post Reply
bitia
Posts: 2
Joined: 08 Feb 2011, 17:22

26 May 2011, 17:39

Hi, I load a html file in an iframe (HTML Component), which in turn is inside a panel that has created dynamically using a list that is returned by a bean, these panels are in a dashboard. Also I changed the DOCTYPE to my archivo.xhtml to accept frames, so I want to show the file.html will put their respective DOCTYPE.

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>

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 56 guests