0 Replies Latest reply on Oct 23, 2007 6:31 PM by x490812

    menuitem reRender in Iframe

      What I want to do is select a menu item, and have the scorllableDataTable in another Iframe be rerendered AFTER the menuItem action is performed; The menuItem action will update the resultset for the ScrollableDataTable. To do this I assumed that the following wouold work, but it does not. Here is what I have, Please give me ideas to fix this or replace it:

      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>
      


      Is the above the correct way to proceed? the action is executing, and I am clearly gettting a new resultset for the datatable, but the rerender is NOT occuring. Why??? are target and reRender working for the menuItem component?