<p:blockUI> does not respond on <h:commandButton><f:ajax>
问题 I got a <h:commandButton like: <h:commandButton id="login" actionListener="#{bean.login}" value="Login" styleClass="btn btn-primary btn-sm"> <f:ajax execute="@form" render="@form"/> </h:commandButton> and a <p:blockUI id="block" block=":form" trigger="login" /> It is not working. The block is never shown up. It does work with a <p:commandButton> . How can I achieve it with a <h:commandbutton> . If that is not possible: Is there any workaround? 回答1: The <p:blockUI> listens on PrimeFaces/jQuery