Can use AjaxStatus while The next Page Is Loading?

后端 未结 1 1358
萌比男神i
萌比男神i 2020-12-12 07:18

Im developing a SW Application. I have been for several time trying to show a modal between the transition of my xhtml pages. I dont want the user can push many buttons or r

相关标签:
1条回答
  • 2020-12-12 07:57

    to make an ajaxStatus try to make it like that (do not forget that the ajaxStatus is invoked each time you use a p:ajax that mean in your dataTable you need to add an ajax event when you try to invok it )

    mypage.xhtml

    <p:ajaxStatus onstart="PF('statusDialog').show()" onsuccess="PF('statusDialog').hide()" />
    <h:form id="form">
    ...
     </h:form>
    
     <p:dialog widgetVar="statusDialog" modal="true" draggable="false" closable="false" resizable="false" showHeader="false">
            <p:graphicImage name="ajaxloadingbar.gif" library="images/myIcons" />
        </p:dialog>
    

    Hope that helped you

    0 讨论(0)
提交回复
热议问题