function openEditDialog(){
window.showModalDialog('/atmew/pages/asset/searchInclude/assetEdit.mew');
document.getElementById('reData').click();
alert('after rerender');
}
然后有一个按钮:
<a4j:commandLink id="edit" action="#{searchController.openAssetEdit}"
oncomplete="openEditDialog()" immediate="true" ajaxSingle="true">
<h:graphicImage url="/images/edit_icon.png" </h:graphicImage>
<f:param name="arId" id="arId" value="#{vo.assetReceiving.id}"/>
</a4j:commandLink>
其他按钮
<a4j:commandButton id="reData" reRender="data_grid" style="visibility: hidden;" onclick="javascript:alert('rerender clicked');"></a4j:commandButton>
reData 按钮没有被点击。IE 的控制台不显示任何消息。这是如何引起的,我该如何解决?