I came across this issue when I was working on primefaces migration from 3.4.2 to 8.0 community edition.
I have the below commandButton named "Order Now" in customerOrderHome.xhtml file.
Code: Select all
<p:panelGrid id="extCustBtn" columns="1" style="text-align: center !important; width: 100% !important;" rendered="#{customerSelection.selectedCustOptn eq 'existing'}" >
<p:commandButton id="ordrButton" onclick="PF('statusDialog').show();" onsuccess="PF('statusDialog').hide();" rendered="#{customerSelection.allCustomers != null and fn:length(customerSelection.allCustomers) > 0 and customerSelection.selectedCustomer != null}" action="#{customerSelection.customerListenerOrderNow}"
value="Order Now">
<f:setPropertyActionListener target="#{customerMgmnt.includeURL}" value="/CustomerManagement/newOrder.xhtml"></f:setPropertyActionListener>
</p:commandButton>
<br/>
</p:panelGrid>
NOTE :
I have added CSP parameter in web.xml.
Primefaces version : 8.0
JSF api: 2.1
Server deployed in : Wildfly 8.0.Final
Case 1:
I have observed that If I remove onclick and onsuccess properties of above commandButton then I dont get the "Missing CSP nonce" exception in the jboss terminal , If I click on this button then the JSF screen just kind of freezes. I can see in the browser window that something is going on in background but on GUI nothing is visible and after some time the screen freezes.
Case2 :
I have observed that If I keep the onclick and onsuccess properties of above commandButton then , on click of this button i get "Missing CSP nonce" exception in the jboss terminal . The complete error is shown below:
Firefox GUI
https://drive.google.com/file/d/1sLxaEb ... p=sharing
Chrome GUI
https://drive.google.com/file/d/1W81CK ... p=sharing
Exception in wildfly terminal
https://drive.google.com/file/d/1uwoUF ... p=sharing
The files included in this are present at this link :
https://drive.google.com/file/d/1jJSLZ ... p=sharing
Please help me. I am stuck at this now.
Thanks