使用Richface通过js脚本直接局部刷新

使用Richface通过js脚本直接局部刷新

<script>
    function testAjaxWithJS(){
        updateHTable();//注意这里一定要和a4j:jsFunction的name的值一致,如红色标记。
    }
</script>
         <h:selectBooleanCheckbox id="existedBalAcct"   onclick="return testAjaxWithJS();"
           value" />
         <a4j:jsFunction name="updateHTable" reRender="accountHTable">
         </a4j:jsFunction>

         <a4j:outputPanel id="accountHTable">
          <h:dataTable headerClass="title2" >
          </h:dataTable>
       </a4j:outputPanel>

你可能感兴趣的:(使用Richface通过js脚本直接局部刷新)