2 Replies Latest reply on Mar 20, 2011 11:52 PM by fengxiaofeng

    iframe memery leaks

    fengxiaofeng

      Hello everybody!

           One page use <iframe src="....jsf"> import a other page,memery leaks(Use SIEve),below is my code,annex a sIEve and screenshots.

           Development environment:

                richfaces3.3.3.Final

                facelets1.1.15

                myfaces1.2.9

                IE8.0

               

       

      index.xhtml:

       

      <?xml version="1.0" encoding="UTF-8"?>

      <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

      <ui:composition xmlns="http://www.w3.org/1999/xhtml"

      xmlns:ui="http://java.sun.com/jsf/facelets"

      xmlns:f="http://java.sun.com/jsf/core"

      xmlns:rich="http://richfaces.org/rich">

      <head></head>

      <body>

        <f:view>

       

              <rich:panel style="width:710px;height:230px">

                    <f:facet name="header">iframe memery leaks</f:facet>

                    <iframe src="otherApps.jsf" width="400px" height="400px" frameborder="0"/>

              </rich:panel>

       

        </f:view>

      </body>

      </ui:composition>

          

      otherApps.xhtml

       

      <?xml version="1.0" encoding="UTF-8"?>

      <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

      <ui:composition xmlns="http://www.w3.org/1999/xhtml"

      xmlns:ui="http://java.sun.com/jsf/facelets"

      xmlns:f="http://java.sun.com/jsf/core"

      xmlns:rich="http://richfaces.org/rich"

      xmlns:a4j="http://richfaces.org/a4j">

       

        <rich:panel style="width:300px;height:300px;">

         <f:facet name="header">

                iframe content

               </f:facet>

        </rich:panel>

       

      </ui:composition>