0 Replies Latest reply on Oct 26, 2007 7:27 PM by x490812

    reRender in an iframe

      I want to be able to reRender a rich:datatable in an iframe from outside the iframe. How do I do this?
      Here is my code
      page hoding navigation and iframe with scrollable data table

      .
      .
      <body>
      
      <div id="header" style="text-align:center">
       <ui:include src="layout/header.xhtml" />
      </div>
      
      
      <div id="navigation" >
       <ui:include src="layout/navigation.xhtml" />
      </div>
      
      
      <div id="contentDiv">
      CASES FOR: <USER>
      <iframe scrolling="no" id="contentFrame" onload="resize_iframe()" src="caselist.seam" style="width:100%;border:none">
      </iframe>
      </div>




      caselist.seam - holds the scrollable data table. is Src'd into the iframe above
      
      .
      .
      <h:form
       id="casetableform"
       style="width:802px;margin:auto;border:solid 1px">
      
       <rich:scrollableDataTable
       id="casetable"
       rows="50"
       columnClasses="col"
       value="#{caseList}"
       var="case"
       sortMode="single"
       width="800px"
       height="600px"
      >
      .
      .
      




      Navigation.xhtml - is included in main page above. Holds the navigation menuitem that is supposed to update the scrollabledatatable in the iframe
      
      <h:form>
       <rich:toolBar>
      
       <rich:dropDownMenu value="View">
      
       <rich:menuItem value="All Cases" submitMode="ajax" target="contentFrame" reRender="casetable" action="#{CASELISTFORM.doCaseListQry('ALL')}"></rich:menuItem>
      
      
      


      What I am getting is the menuItem action being performed (#{CASELISTFORM.doCaseListQry('ALL')}), but the dtatable NOT getting rerendered. Why?? Is there a better way to do this? Do the richfaces components have the ability to reRender dom objects in an Iframe Source? reRendering has been giving me a lot of problems with this project