Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

p:commandButton onclick function not invoked in Internet Explorer

<p:commandButton id="changepwd" value="Change Password" type="button"
  onclick="changepwdPanel.show()" update="dialog,messages" appendToBody="true" />

This button displays a <p:dialog>. It works fine in Firefox and Chrome, but not in Internet Explorer.

How is this caused and how can I solve it?

like image 202
Nando Vieira Avatar asked Mar 08 '26 18:03

Nando Vieira


1 Answers

Try using:

<f:facet name="first">
    <meta http-equiv="X-UA-Compatible" content="IE=9" />
</f:facet>

in <h:head>, I had similar issue and it worked for me.

like image 59
dShringi Avatar answered Mar 10 '26 06:03

dShringi



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!