I was trying something like below --
<h:commandButton id="btnOK">
<f:ajax event="action" execute="@this" render="idHeader"
listener="#{myBean.actionSubmit()}"/>
</h:commandButton>
And I want when that ajax request completes, do some processing in the UI.I am using following jQuery code for that :
$(document).ajaxComplete(function() {
$.modal.close();
});
But my problem is the jQuery method is not fired at all. I am wondering if JSF ajax submission fires the ajaxComplete event or not??