Auto refresh in JSF using Ajax
问题 I am using this code in my .xhtml page In head tag, i am using for refresh purpose, <script type="text/javascript"> alert("hi"); setInterval(function() { document.getElementById('myForm:btnLoadData').submit(); alert("Hello"); }, 3000); </script> and inside ui:define tag i am writing this code. <h:panelGroup id="divData" layout="block"> //my jsf code.................. </h:panelGroup> <h:form id="myForm"> <h:commandButton id="btnLoadData" value="Hidden" style="display:none"> <f:ajax execute="