Synchronous XMLHttpRequest on the main thread is deprecated

UI Components for JSF
Post Reply
User avatar
gst2015
Posts: 8
Joined: 27 Aug 2015, 11:05
Location: india
Contact:

27 Aug 2015, 11:58

Hello all ,

We are using primefaces 5.2 with seam 2.3 . When we had used the p:menu in p:datatable it is showing error on browser console "Synchronous XMLHttpRequest on the main thread is deprecated because of its detrimental effects to the end user's experience"

<p:column exportable="false" style="width:70px;">
<f:facet name="header">
<h:outputText value="Reports" />
</f:facet>
<p:commandLink styleClass="dropdown-toggle"
actionListener="#{pmlCampaignAction.test(cmUsers)}" id="dynaButton">
<img src="assets-production/camp_img/upload.png"></img>
</p:commandLink>

<p:menu id="reportMenuIdCm"
styleClass="dropdown-menu reports-campaign tasks-bar mt-xs"
overlay="true" trigger="dynaButton" my="center top"
at="center bottom">

<p:menuitem value="Upload"
action="#{pmlCampaignAction.test(cmUsers)}"
onclick="#{rich:component('popup')}.show()" />
<p:menuitem
rendered="#{pmlCampaignAction.showReportsExist(cmUsers).userFormId ne null}"
value="User Form" action="#{pmlCampaignAction.test(cmUsers)}"
onclick="#{rich:component('popupShowForpdfForm')}.show()" />
<p:menuitem
rendered="#{pmlCampaignAction.showReportsExist(cmUsers).bloodSampleId ne null}"
value="Blood Report" action="#{pmlCampaignAction.test(cmUsers)}"
onclick="#{rich:component('popupShowForBloodpdfForm')}.show()" />

</p:menu>
What is the reason for this ? is it because of using richcomponent

kukeltje
Expert Member
Posts: 9605
Joined: 17 Jun 2010, 13:34
Location: Netherlands

28 Aug 2015, 15:40

Browser console is on the BROWSER... and you do not mention which browser... hmmmm

User avatar
gst2015
Posts: 8
Joined: 27 Aug 2015, 11:05
Location: india
Contact:

31 Aug 2015, 07:37

Chrome .. but in other browsers it is not showing up the error and the page will stand still .

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 50 guests