There is a mistake that breaks everything. After it stands out, all other scripts fall away. How to fix it? Here is the code.

<?xml version='1.0' encoding='UTF-8' ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xmlns:h="http://xmlns.jcp.org/jsf/html" xmlns:p="http://primefaces.org/ui"> <h:head> <title>Facelet Title</title> </h:head> <h:body> <h:link outcome="create" value="Insert a new diver"></h:link> <h:form id="myForm"> <p:dataTable value="#{diverController.lst}" var="d" scrollable="true" scrollHeight="500" style="width:800px;margin-left: auto;"> <p:column headerText="Id" > #{d.id} </p:column> <p:column headerText="Name" > #{d.name} </p:column> <p:column headerText="Num"> #{d.num} </p:column> <p:column headerText="Status"> #{d.status} </p:column> <p:column headerText="Lat"> #{d.lat} </p:column> <p:column headerText="Lot"> #{d.lot} </p:column> <p:column headerText="Action"> <h:commandLink value ="Remove" action="#{diverController.remove(d)}" onclick="return confirm('Are you Sure')"></h:commandLink>|| <h:commandLink value="Edit" action="#{diverController.edit(d)}"></h:commandLink> </p:column> <p:column headerText="Check" > <p:commandButton id="mButn" class="Bzazaza" ></p:commandButton> </p:column> </p:dataTable> <p:poll update="myForm" interval="10" ></p:poll> </h:form> <h:outputScript library="js" name="example.js"></h:outputScript> </h:body> </html> 

But the error

 jquery.js?ln=primefaces&v=5.0:25 Synchronous XMLHttpRequest on the main thread is deprecated because of its detrimental effects to the end user's experience. For more help, check https://xhr.spec.whatwg.org/. 
  • Show a piece of code from jquery.js?ln=primefaces&v=5.0 ... maybe 25 is a string. - nick_n_a
  • @nick_n_a well, a piece from jquery.js this will probably be the xhr sending code, you need to go through the stack, find the moment of sending the request and look already there. - Duck Learns to Take Cover
  • btw seems to be synchronous xhr should issue a warning, but not an error. But not exactly sure) - Duck Learns to Take Cover
  • one
    @ Duck LEARNING YES YES this warning is not an error) - elik
  • Can I leave it?) - elik

0