4 Replies Latest reply on Jul 16, 2009 10:45 AM by Ioana Iacob

    rich:tree && iFrame

    Ioana Iacob Newbie

      Hello,

      A selection of a tree node in my project should reRender an outputpanel containing an iframe, whose src (a pdf) i set to a bean property.

       <rich:tree id="tree" value="#{Bean.tree}" var="node"
       ajaxSubmitSelection="true" switchType="client"
       nodeSelectListener="#{Bean.processTreeNodeImplSelection}"
       toggleOnClick="true" reRender="panel">
       <rich:treeNode>
       <h:outputText value="#{node}"/>
       </rich:treeNode>
       </rich:tree>
      
       <a4j:outputPanel id="panel" rendered="#{!empty Bean.pdf}">
       <f:verbatim>
       <iframe src="#{Bean.pdf}" width="630"
       height="430"></iframe>
       </f:verbatim>
       </a4j:outputPanel>
      


      It does not work. But if I refresh the page (F5 or Ctrl+F5) the pdf magically appears. I debuged, the listener is called, the pdf property is set.
      What am I missing?

      Thanks,
      Ioana.