Within my JSF 2 web application, I have implemented the following code snippet to manage and update the contents of a rich:dataTable based on the selectedStatus:
<h:selectOneRadio id="statusSelection" value="#{backingBean.selectedStatus}" style="width:auto; float:left;">
<f:selectItem itemValue="AVAILABLE" itemLabel="Available" />
<f:selectItem itemValue="INACTIVE" itemLabel="Inactive" />
<f:ajax render="itemsDataTable" execute="#{backingBean.sortByTitel('ascending')}" />
<f:ajax render="itemsDataTable" event="click" />
</h:selectOneRadio>
Within this dataTable, a4j:commandLink elements are utilized. However, it has been observed that in certain versions of Internet Explorer, these links require a double click after changing table content. To address this issue, running the following JavaScript code (within IE's debugging console post content alteration) resolves the problem:
document.getElementById(<dataTableClientId>).focus()
Hence, my inquiry is as follows: What approach can I take to automatically trigger the execution of the aforementioned JavaScript code after the table contents have been updated?